public final class DOFAuthenticator
extends java.lang.Object
DOF.createAuthenticator(org.opendof.core.oal.DOFAuthenticator.Config)
by passing in a built DOFAuthenticator.Config
.Modifier and Type | Class and Description |
---|---|
static class |
DOFAuthenticator.AuthenticationNode
This represents an Authentication-type node in the Storage.
|
static class |
DOFAuthenticator.Config
This class represents the configuration for an authenticator.
|
static interface |
DOFAuthenticator.CredentialStorage
This interface defines the methods necessary for the
DOFAuthenticator.Storage.resolve(org.opendof.core.oal.DOFAuthenticator.CredentialStorage) method to set the identity
and private data of a credential. |
static class |
DOFAuthenticator.RemoteDomainNode
This represents a Remote Domain-type node in the Storage.
|
static class |
DOFAuthenticator.SecureGroupNode
This represents a Secure Group-type node in the Storage.
|
static class |
DOFAuthenticator.SecurityType
The type of security associated with a security request.
|
static interface |
DOFAuthenticator.State
This represents the instantaneous state of the authenticator at a given time.
|
static interface |
DOFAuthenticator.Storage
The
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 |
---|---|
static byte[] |
createSessionKey()
Create a random session key that is suitable for long-term use as either
a shared secret or a session key.
|
void |
destroy()
Destroys an authenticator.
|
DOFObjectID.Domain |
getDomainID()
Return the domain identifier for the authenticator.
|
DOFAuthenticator.State |
getState()
Get the current instantaneous state of the authenticator.
|
public void destroy()
public DOFObjectID.Domain getDomainID()
public DOFAuthenticator.State getState()
public static byte[] createSessionKey()
DOFCredentials
(equivalent to calling DOFUtil.getRandomBytes(int)
and specifying a length of 32).