Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.State
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- Direct Known Subclasses:
ServerAuthenticationContext.ActiveState,ServerAuthenticationContext.CompleteState,ServerAuthenticationContext.InactiveState
- Enclosing class:
- ServerAuthenticationContext
abstract static class ServerAuthenticationContext.State extends Object
-
-
Constructor Summary
Constructors Constructor Description State()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddPrivateCredential(Credential credential)(package private) voidaddPublicCredential(Credential credential)(package private) voidaddRuntimeAttributes(Attributes runtimeAttributes)(package private) booleanauthorize(boolean requireLoginPermission)(package private) booleanauthorize(Principal authorizationId, boolean authorizeRunAs)(package private) booleanauthorizeAnonymous(boolean requireLoginPermission)booleancanVerifyEvidence()Indicate whether or not evidence verification is allowed.(package private) voidfail(boolean requireInProgress)(package private) PrincipalgetAuthenticationPrincipal()(package private) SecurityIdentitygetAuthorizedIdentity()(package private) <C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)(package private) SupportLevelgetCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)(package private) SupportLevelgetEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)(package private) MechanismConfigurationgetMechanismConfiguration()(package private) MechanismRealmConfigurationgetMechanismRealmConfiguration()(package private) RealmIdentitygetRealmIdentity()(package private) SecurityDomaingetSecurityDomain()(package private) booleanimportIdentity(SecurityIdentity identity)booleanisAuthorized()Indicate whether or not current state isServerAuthenticationContext.AuthorizedState.(package private) booleanisDone()booleanisNameAssigned()Indicate whether or not current state isServerAuthenticationContext.NameAssignedState.(package private) booleanisSamePrincipal(Principal principal)(package private) voidsetMechanismInformation(MechanismInformation mechanismInformation)(package private) voidsetMechanismRealmName(String name)(package private) voidsetPrincipal(Principal principal, boolean exclusive)(package private) voidsucceed()(package private) voidupdateCredential(Credential credential)(package private) booleanverifyEvidence(Evidence evidence)
-
-
-
Method Detail
-
getMechanismConfiguration
MechanismConfiguration getMechanismConfiguration()
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
-
getAuthorizedIdentity
SecurityIdentity getAuthorizedIdentity()
-
getAuthenticationPrincipal
Principal getAuthenticationPrincipal()
-
isSamePrincipal
boolean isSamePrincipal(Principal principal)
-
getCredentialAcquireSupport
SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
getCredential
<C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
verifyEvidence
boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
importIdentity
boolean importIdentity(SecurityIdentity identity) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
getRealmIdentity
RealmIdentity getRealmIdentity()
-
getSecurityDomain
SecurityDomain getSecurityDomain()
-
authorizeAnonymous
boolean authorizeAnonymous(boolean requireLoginPermission)
-
setMechanismInformation
void setMechanismInformation(MechanismInformation mechanismInformation)
-
setPrincipal
void setPrincipal(Principal principal, boolean exclusive) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException- Throws:
RealmUnavailableException
-
authorize
boolean authorize(Principal authorizationId, boolean authorizeRunAs) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
setMechanismRealmName
void setMechanismRealmName(String name)
-
updateCredential
void updateCredential(Credential credential) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
succeed
void succeed()
-
fail
void fail(boolean requireInProgress)
-
isDone
boolean isDone()
-
addPublicCredential
void addPublicCredential(Credential credential)
-
addPrivateCredential
void addPrivateCredential(Credential credential)
-
addRuntimeAttributes
void addRuntimeAttributes(Attributes runtimeAttributes)
-
isNameAssigned
public boolean isNameAssigned()
Indicate whether or not current state isServerAuthenticationContext.NameAssignedState.- Returns:
trueif state isServerAuthenticationContext.NameAssignedState. Otherwise,false.
-
isAuthorized
public boolean isAuthorized()
Indicate whether or not current state isServerAuthenticationContext.AuthorizedState.- Returns:
trueif state isServerAuthenticationContext.AuthorizedState. Otherwise,false.
-
canVerifyEvidence
public boolean canVerifyEvidence()
Indicate whether or not evidence verification is allowed.- Returns:
trueif evidence verification can be performed. Otherwise,false.
-
-