02/28/2005
 

com.epicentric.authentication
Class AccountTypeDescriptor

java.lang.Object
  |
  +--com.epicentric.authentication.AccountTypeDescriptor

public class AccountTypeDescriptor
extends Object

Description of an authentication account. There is one object of this type for every Realm that has an Authenticator. An AccountTypeDescriptor contains AccountPropertyDescriptor objects.

This class provides a generic way to define properties. An alias can be used to map properties -- for example, to map logon to rdn for LDAP or to username for SQL or NT.

Since:
version 4.0

Method Summary
 Iterator aliasIterator()
          Returns an iterator of property aliases for this AccountTypeDescriptor.
 boolean containsPropertyWithID(String propertyID)
          Checks whether this AccountTypeDescriptor contains a property with the given ID
 AccountPropertyDescriptor getPropertyByID(String propertyID)
          Returns an AccountPropertyDescriptor by its ID or corresponding alias.
 Iterator propertyIterator()
          Returns an iterator of AccountPropertyDescriptor objects for this AccountTypeDescriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyByID

public AccountPropertyDescriptor getPropertyByID(String propertyID)
                                          throws PropertyDescriptorNotFoundException
Returns an AccountPropertyDescriptor by its ID or corresponding alias.
Parameters:
propertyID - Unique identifier of the property or corresponding alias to be retrieved
Returns:
AccountPropertyDescriptor corresponding to propertyID

containsPropertyWithID

public boolean containsPropertyWithID(String propertyID)
Checks whether this AccountTypeDescriptor contains a property with the given ID
Parameters:
propertyID - ID for the AccountPropertyDescriptor
Returns:
true if this AccountTypeDescriptor contains propertyID; false otherwise

propertyIterator

public Iterator propertyIterator()
Returns an iterator of AccountPropertyDescriptor objects for this AccountTypeDescriptor.
Returns:
Iterator of AccountPropertyDescriptor objects.

aliasIterator

public Iterator aliasIterator()
Returns an iterator of property aliases for this AccountTypeDescriptor.
Returns:
Iterator of AccountPropertyDescriptor aliases.

02/28/2005
 

Copyright and Trademark Notices