public static interface DOFAuthenticator.Storage
Storage interface defines the methods necessary for authentication, and
is used to create storage implementations for different types of storage mediums.| Modifier and Type | Method and Description |
|---|---|
DOFAuthenticator.RemoteDomainNode |
getDomainNode(DOFObjectID.Authentication domainID,
DOFObjectID.Authentication initiatorID)
Get the corresponding Node, for the specified domain node identifier, that represents a remote domain.
|
DOFAuthenticator.SecureGroupNode |
getGroupNode(DOFObjectID.Authentication nodeID)
Get the corresponding group node for the specified node identifier.
|
DOFAuthenticator.AuthenticationNode |
getNode(DOFObjectID.Authentication nodeID,
short credentialType,
DOFAuthenticator.SecurityType securityType,
byte[] securityMode,
DOFPermissionSet permissions)
Get the corresponding Node for the specified node identifier.
|
DOFObjectID.Domain |
getStorageDomainID()
Get the storage's domain identifier.
|
boolean |
isStorageAvailable()
Returns whether or not the storage is available.
|
void |
resolve(DOFAuthenticator.CredentialStorage credential)
Resolve the specified credentials by updating the credential with known identity and
credential private storage.
|
void resolve(DOFAuthenticator.CredentialStorage credential) throws java.lang.Exception
credential - The credentials to resolve.java.lang.Exception - If the credentials could not be resolved.DOFAuthenticator.CredentialStorage.setPrivateStorage(org.opendof.core.oal.DOFObjectID.Domain, org.opendof.core.oal.DOFObjectID.Authentication, byte[])DOFAuthenticator.AuthenticationNode getNode(DOFObjectID.Authentication nodeID, short credentialType, DOFAuthenticator.SecurityType securityType, byte[] securityMode, DOFPermissionSet permissions) throws java.lang.Exception
nodeID - The identifier for the node. This must not be null.credentialType - The type of credentials desired for the node. Can be zero (DOFCredentials.NONE), in which case the node returned will have no credential data.securityType - The type of security associated with the get node request. May be used for determining which permissions to return with the node.securityMode - The security mode DOFSecurityMode, in marshaled format,
associated with the get node request. May be used for determining which permissions to return with the node. May be null.permissions - If null, return a node that specifies all of its permissions, otherwise return a node with the set of permissions required to evaluate the permission set argument.
The returned permissions should be scoped to the context of the security type and mode.java.lang.Exception - On internal error.DOFAuthenticator.SecureGroupNode getGroupNode(DOFObjectID.Authentication nodeID) throws java.lang.Exception
nodeID - The identifier for the node. Must not be null.java.lang.Exception - On internal error.DOFAuthenticator.RemoteDomainNode getDomainNode(DOFObjectID.Authentication domainID, DOFObjectID.Authentication initiatorID) throws java.lang.Exception
domainID - The domain identifier for the node. Must not be null.initiatorID - The identity of the initiator in the remote domain. This identity must be mapped
to a node identity in the local domain and returned with the remote domain node. If null,
then the mapped identity should be null.java.lang.Exception - On internal error.DOFObjectID.Domain getStorageDomainID() throws java.lang.Exception
java.lang.Exception - If the storage domain identifier could not be retrieved.boolean isStorageAvailable()
throws java.lang.Exception
java.lang.Exception - If storage availability could not be determined.