Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.AuthorizedAuthenticationState
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.ActiveState
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.AuthorizedState
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.AuthorizedAuthenticationState
-
- Enclosing class:
- ServerAuthenticationContext
final class ServerAuthenticationContext.AuthorizedAuthenticationState extends ServerAuthenticationContext.AuthorizedState
-
-
Field Summary
Fields Modifier and Type Field Description private RealmIdentity
realmIdentity
-
Constructor Summary
Constructors Constructor Description AuthorizedAuthenticationState(SecurityIdentity authorizedIdentity, Principal authenticationPrincipal, RealmInfo realmInfo, RealmIdentity realmIdentity, MechanismRealmConfiguration mechanismRealmConfiguration, MechanismConfiguration mechanismConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addPrivateCredential(Credential credential)
(package private) void
addPublicCredential(Credential credential)
(package private) void
addRuntimeAttributes(Attributes runtimeAttributes)
(package private) void
fail(boolean requireInProgress)
(package private) <C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
(package private) SupportLevel
getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
(package private) SupportLevel
getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)
(package private) RealmIdentity
getRealmIdentity()
(package private) void
succeed()
(package private) void
updateCredential(Credential credential)
(package private) boolean
verifyEvidence(Evidence evidence)
-
Methods inherited from class org.wildfly.security.auth.server.ServerAuthenticationContext.AuthorizedState
authorize, authorizeRunAs, getAuthenticationPrincipal, getAuthorizedIdentity, getMechanismConfiguration, getMechanismRealmConfiguration, getRealmInfo, getSecurityDomain, getSourceIdentity, isSamePrincipal
-
Methods inherited from class org.wildfly.security.auth.server.ServerAuthenticationContext.ActiveState
authorize, setMechanismInformation, setMechanismRealmName
-
Methods inherited from class org.wildfly.security.auth.server.ServerAuthenticationContext.State
authorizeAnonymous, canVerifyEvidence, importIdentity, isAuthorized, isDone, isNameAssigned, setPrincipal
-
-
-
-
Field Detail
-
realmIdentity
private final RealmIdentity realmIdentity
-
-
Constructor Detail
-
AuthorizedAuthenticationState
AuthorizedAuthenticationState(SecurityIdentity authorizedIdentity, Principal authenticationPrincipal, RealmInfo realmInfo, RealmIdentity realmIdentity, MechanismRealmConfiguration mechanismRealmConfiguration, MechanismConfiguration mechanismConfiguration)
-
-
Method Detail
-
getCredentialAcquireSupport
SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Overrides:
getCredentialAcquireSupport
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Overrides:
getEvidenceVerifySupport
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
getCredential
<C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Overrides:
getCredential
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
verifyEvidence
boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException
- Overrides:
verifyEvidence
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
getRealmIdentity
RealmIdentity getRealmIdentity()
- Overrides:
getRealmIdentity
in classServerAuthenticationContext.State
-
updateCredential
void updateCredential(Credential credential) throws RealmUnavailableException
- Overrides:
updateCredential
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
succeed
void succeed()
- Overrides:
succeed
in classServerAuthenticationContext.AuthorizedState
-
fail
void fail(boolean requireInProgress)
- Overrides:
fail
in classServerAuthenticationContext.State
-
addPublicCredential
void addPublicCredential(Credential credential)
- Overrides:
addPublicCredential
in classServerAuthenticationContext.AuthorizedState
-
addPrivateCredential
void addPrivateCredential(Credential credential)
- Overrides:
addPrivateCredential
in classServerAuthenticationContext.AuthorizedState
-
addRuntimeAttributes
void addRuntimeAttributes(Attributes runtimeAttributes)
- Overrides:
addRuntimeAttributes
in classServerAuthenticationContext.AuthorizedState
-
-