public static interface DOFAuthenticator.CredentialStorage
DOFAuthenticator.Storage.resolve(org.opendof.core.oal.DOFAuthenticator.CredentialStorage)
method to set the identity
and private data of a credential.Modifier and Type | Method and Description |
---|---|
DOFObjectID.Authentication |
getIdentity()
Return the identity that the credentials apply to.
|
byte[] |
getStorageKey()
Return the storage key associated with this credential.
|
short |
getType()
Get the type of credential.
|
void |
setPrivateStorage(DOFObjectID.Domain domainID,
DOFObjectID.Authentication identity,
byte[] storage)
Set the private credential storage data into a credential.
|
short getType()
DOFObjectID.Authentication getIdentity()
byte[] getStorageKey()
getIdentity()
call returns null. If getIdentity()
returns non-null then
this routine may return null. If both return null then the Credential is not valid.void setPrivateStorage(DOFObjectID.Domain domainID, DOFObjectID.Authentication identity, byte[] storage) throws DOFSecurityException
domainID
- The domain of the credential, or null if it is already known to the credentialidentity
- The public identity of the credential, or null if it is already known to the credential
and should not be changed.storage
- The private credential data.DOFSecurityException
- Thrown if the data is invalid for the credential.