com.bea.p13n.security.management.authentication
Class AtnProviderDescription

java.lang.Object
  extended by com.bea.p13n.security.management.ProviderDescription
      extended by com.bea.p13n.security.management.authentication.AtnProviderDescription
All Implemented Interfaces
Serializable

public class AtnProviderDescription
extends ProviderDescription
implements Serializable

This class holds information describing a single SSPI Authentication provider. It is a convenience class, an immutable value object used by ATN management functions.

This class is normally not directly instantiated, but is accessed through the use of the SecurityMgmtHelper.

See Also
AtnSecurityMgmtHelper, Serialized Form

Field Summary
 
Fields inherited from class com.bea.p13n.security.management.ProviderDescription
DUMB_PROVIDER, READ_ONLY_PROVIDER, READ_WRITE_PROVIDER
 
Constructor Summary
AtnProviderDescription(AuthenticationProviderMBean anAtnMBean)
           
 
Method Summary
 boolean equals(Object inputObject)
          Overridden equals method.
 String getControlFlag()
          setting of this provider's configuration.
 AuthenticationProviderMBean getProviderMBean()
          Get the MBean used to initialize this instance.
 int getProviderMgmtCapability()
          Get provider capability - a roll up of what optional MBeans are implemented.
 int hashCode()
          Returns a hash code value for the object.
 boolean isDefaultAtnProvider()
          The scheme for who the default provider is multi-tiered: If the system property com.bea.p13n.usermgmt.AuthenticationProviderName, is set, the provider with that name is used.
 boolean isGroupEditorImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isGroupMemberListerImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isGroupReaderImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isGroupRemoverImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isMemberGroupListerImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isUserEditorImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isUserLockoutManagerImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isUserPasswordEditorImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isUserReaderImplemented()
          Get provider configuration information for optional MBean implementation.
 boolean isUserRemoverImplemented()
          Get provider configuration information for optional MBean implementation.
 String toString()
           
 
Methods inherited from class com.bea.p13n.security.management.ProviderDescription
getDescription, getDisplayName, getVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtnProviderDescription

public AtnProviderDescription(AuthenticationProviderMBean anAtnMBean)
Method Detail

isDefaultAtnProvider

public boolean isDefaultAtnProvider()
The scheme for who the default provider is multi-tiered:
  1. If the system property com.bea.p13n.usermgmt.AuthenticationProviderName, is set, the provider with that name is used. If the system property is set and the provider is not found, a UserManagementException is thrown. This allows you to set a provider server-wide.
  2. If a property file named usermgmt-provider.properties is found (using the thread's context classloader, so it could be in APP-INF/classes/, for example), and that file contains the property com.bea.p13n.usermgmt.AuthenticationProviderName, then the provider with that name is used. If the named provider is not found, a UserManagementException is thrown. This can allow you to set an application-specific provider.
  3. The provider that implements at least UserReaderMBean and GroupReaderMBean, plus the greatest number of the following additional interfaces. If two providers qualify, the first provider is chosen.
    • UserEditorMBean
    • GroupEditorMBean
    • GroupMemberListerMBean
    • MemberGroupListerMBean
  4. The first provider that is an instance of RealmAdapterAuthenticatorMBean (this is 6.x migration mode).
  5. If all those fail, throw UserManagementException

Returns
true if this provider is the default authentication provider

isGroupEditorImplemented

public boolean isGroupEditorImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

getControlFlag

public String getControlFlag()
setting of this provider's configuration.

Returns
String description of provider's setting.

isGroupReaderImplemented

public boolean isGroupReaderImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isGroupRemoverImplemented

public boolean isGroupRemoverImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isGroupMemberListerImplemented

public boolean isGroupMemberListerImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isMemberGroupListerImplemented

public boolean isMemberGroupListerImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isUserEditorImplemented

public boolean isUserEditorImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isUserLockoutManagerImplemented

public boolean isUserLockoutManagerImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isUserPasswordEditorImplemented

public boolean isUserPasswordEditorImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isUserReaderImplemented

public boolean isUserReaderImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

isUserRemoverImplemented

public boolean isUserRemoverImplemented()
Get provider configuration information for optional MBean implementation.

Returns
true if provider implements this interface, otherwise false

getProviderMgmtCapability

public int getProviderMgmtCapability()
Get provider capability - a roll up of what optional MBeans are implemented. Possible values;
  1. DUMB_PROVIDER
  2. READ_ONLY_PROVIDER
  3. READ_WRITE_PROVIDER

Returns
true if provider implements this interface, otherwise false

getProviderMBean

public AuthenticationProviderMBean getProviderMBean()
Get the MBean used to initialize this instance.

Returns
the MBean representing this authentication provider

toString

public String toString()
Overrides:
toString in class ProviderDescription

equals

public boolean equals(Object inputObject)
Overridden equals method.

Overrides:
equals in class Object
Parameters
inputObject - The AtnProviderDescription to compare with.
Returns
true if both objects have the same description and version text.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object


Copyright © 2011, Oracle. All rights reserved.