Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.AnonymousAuthorizedState
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.ActiveState
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.AnonymousAuthorizedState
-
- Enclosing class:
- ServerAuthenticationContext
final class ServerAuthenticationContext.AnonymousAuthorizedState extends ServerAuthenticationContext.ActiveState
-
-
Field Summary
Fields Modifier and Type Field Description private SecurityIdentity
anonymousIdentity
-
Constructor Summary
Constructors Constructor Description AnonymousAuthorizedState(SecurityIdentity anonymousIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
authorize(boolean requireLoginPermission)
(package private) boolean
authorizeAnonymous(boolean requireLoginPermission)
(package private) void
fail(boolean requireInProgress)
(package private) Principal
getAuthenticationPrincipal()
(package private) SecurityIdentity
getAuthorizedIdentity()
(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) MechanismConfiguration
getMechanismConfiguration()
(package private) MechanismRealmConfiguration
getMechanismRealmConfiguration()
(package private) RealmIdentity
getRealmIdentity()
(package private) SecurityDomain
getSecurityDomain()
(package private) SecurityIdentity
getSourceIdentity()
(package private) boolean
isSamePrincipal(Principal principal)
(package private) void
setPrincipal(Principal principal, boolean exclusive)
(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.ActiveState
authorize, setMechanismInformation, setMechanismRealmName
-
Methods inherited from class org.wildfly.security.auth.server.ServerAuthenticationContext.State
addPrivateCredential, addPublicCredential, addRuntimeAttributes, canVerifyEvidence, importIdentity, isAuthorized, isDone, isNameAssigned
-
-
-
-
Field Detail
-
anonymousIdentity
private final SecurityIdentity anonymousIdentity
-
-
Constructor Detail
-
AnonymousAuthorizedState
AnonymousAuthorizedState(SecurityIdentity anonymousIdentity)
-
-
Method Detail
-
getMechanismConfiguration
MechanismConfiguration getMechanismConfiguration()
- Overrides:
getMechanismConfiguration
in classServerAuthenticationContext.State
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
- Overrides:
getMechanismRealmConfiguration
in classServerAuthenticationContext.State
-
getAuthorizedIdentity
SecurityIdentity getAuthorizedIdentity()
- Overrides:
getAuthorizedIdentity
in classServerAuthenticationContext.State
-
getAuthenticationPrincipal
Principal getAuthenticationPrincipal()
- Overrides:
getAuthenticationPrincipal
in classServerAuthenticationContext.State
-
isSamePrincipal
boolean isSamePrincipal(Principal principal)
- Overrides:
isSamePrincipal
in classServerAuthenticationContext.State
-
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
-
getSecurityDomain
SecurityDomain getSecurityDomain()
- Overrides:
getSecurityDomain
in classServerAuthenticationContext.State
-
authorizeAnonymous
boolean authorizeAnonymous(boolean requireLoginPermission)
- Overrides:
authorizeAnonymous
in classServerAuthenticationContext.State
-
setPrincipal
void setPrincipal(Principal principal, boolean exclusive) throws RealmUnavailableException
- Overrides:
setPrincipal
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException
- Overrides:
authorize
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
updateCredential
void updateCredential(Credential credential) throws RealmUnavailableException
- Overrides:
updateCredential
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
succeed
void succeed()
- Overrides:
succeed
in classServerAuthenticationContext.State
-
fail
void fail(boolean requireInProgress)
- Overrides:
fail
in classServerAuthenticationContext.State
-
getSourceIdentity
SecurityIdentity getSourceIdentity()
- Specified by:
getSourceIdentity
in classServerAuthenticationContext.ActiveState
-
-