|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.security.RemoteAccountManagerImpl
public class RemoteAccountManagerImpl
An object that wraps an AccountManager object in order to expose it via RMI. Usually this is not used directly by client code, but rather via the ClientAccountManager object.
AccountManager
,
ClientAccountManager
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Method Summary | |
---|---|
RemoteAccount |
createAccount(java.lang.String pAccountName,
int pType,
java.util.Map pAttributes)
Creates a new account with a given set of attributes. |
static RemoteAccountManager |
createProxy(AccountManager pManager)
Constructs a remote session-based proxy for an AccountManager |
RemoteAccount |
getAccount(java.lang.String pAccountName)
Retrieves the account object for the account with the given name. |
java.lang.String |
getDescriptionAttribute()
Returns the name of the group or privilege account attribute that describes the account in human-readable terms. |
java.lang.String |
getFirstNameAttribute()
Returns the name of the attribute that contains the first name of the owner of a login account. |
java.lang.String |
getLastNameAttribute()
Returns the name of the attribute that contains the last name of the owner of a login account. |
java.lang.String |
getPasswordAttribute()
Returns the name of hte attribute that contains the password for a login account. |
PasswordHasher |
getPasswordHasher()
Returns the password hasher that should be used to encrypt the password attribute of an account. |
atg.rmi.RemoteIterator |
listAccounts(int pType)
Returns an iterator of accounts with a particular set of types. |
atg.rmi.RemoteIterator |
listMatchingAccounts(java.lang.String pExpression,
int pType)
Lists accounts that match a given expression. |
void |
removeAccount(java.lang.String pAccountName)
Removes an account with the indicated name, if possible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Method Detail |
---|
public static RemoteAccountManager createProxy(AccountManager pManager) throws java.rmi.RemoteException
java.rmi.RemoteException
public atg.rmi.RemoteIterator listAccounts(int pType) throws TooManyAccountsException, java.rmi.RemoteException
listAccounts
in interface RemoteAccountManager
type
- The account type(s) to list. You may logical-or
the types togeter to select a union.
TooManyAccountsException
java.rmi.RemoteException
AccountTypes
public atg.rmi.RemoteIterator listMatchingAccounts(java.lang.String pExpression, int pType) throws TooManyAccountsException, java.rmi.RemoteException
listMatchingAccounts
in interface RemoteAccountManager
expression
- The expression to use to determine which accounts
to list. Currently the language used for the
expression is undefined.type
- The account type(s) to match against. You may logical-or
the types togeter to select a union.
TooManyAccountsException
java.rmi.RemoteException
AccountTypes
public RemoteAccount getAccount(java.lang.String pAccountName) throws java.rmi.RemoteException
getAccount
in interface RemoteAccountManager
pAccountName
- The name of the account to retrieve.
java.rmi.RemoteException
public RemoteAccount createAccount(java.lang.String pAccountName, int pType, java.util.Map pAttributes) throws AccountExistsException, InvalidAttributeException, PermissionDeniedException, java.rmi.RemoteException
createAccount
in interface RemoteAccountManager
pAccountName
- The name of the account to create.pAttributes
- Set of attributes that should be set in the new
account. Usually at least "password" is required.
All attribute values must be strings.pType
- The type of the account to create.
AccountExistsException
InvalidAttributeException
PermissionDeniedException
java.rmi.RemoteException
public void removeAccount(java.lang.String pAccountName) throws NoSuchAccountException, PermissionDeniedException
removeAccount
in interface RemoteAccountManager
NoSuchAccountException
PermissionDeniedException
public java.lang.String getDescriptionAttribute()
getDescriptionAttribute
in interface RemoteAccountManager
public java.lang.String getFirstNameAttribute()
getFirstNameAttribute
in interface RemoteAccountManager
public java.lang.String getLastNameAttribute()
getLastNameAttribute
in interface RemoteAccountManager
public java.lang.String getPasswordAttribute()
getPasswordAttribute
in interface RemoteAccountManager
public PasswordHasher getPasswordHasher()
getPasswordHasher
in interface RemoteAccountManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |