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 SecurityIdentityanonymousIdentity
-
Constructor Summary
Constructors Constructor Description AnonymousAuthorizedState(SecurityIdentity anonymousIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanauthorize(boolean requireLoginPermission)(package private) booleanauthorizeAnonymous(boolean requireLoginPermission)(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) SecurityIdentitygetSourceIdentity()(package private) booleanisSamePrincipal(Principal principal)(package private) voidsetPrincipal(Principal principal, boolean exclusive)(package private) voidsucceed()(package private) voidupdateCredential(Credential credential)(package private) booleanverifyEvidence(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:
getMechanismConfigurationin classServerAuthenticationContext.State
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
- Overrides:
getMechanismRealmConfigurationin classServerAuthenticationContext.State
-
getAuthorizedIdentity
SecurityIdentity getAuthorizedIdentity()
- Overrides:
getAuthorizedIdentityin classServerAuthenticationContext.State
-
getAuthenticationPrincipal
Principal getAuthenticationPrincipal()
- Overrides:
getAuthenticationPrincipalin classServerAuthenticationContext.State
-
isSamePrincipal
boolean isSamePrincipal(Principal principal)
- Overrides:
isSamePrincipalin classServerAuthenticationContext.State
-
getCredentialAcquireSupport
SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Overrides:
getCredentialAcquireSupportin classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Overrides:
getEvidenceVerifySupportin classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
getCredential
<C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Overrides:
getCredentialin classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
verifyEvidence
boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException
- Overrides:
verifyEvidencein classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
getRealmIdentity
RealmIdentity getRealmIdentity()
- Overrides:
getRealmIdentityin classServerAuthenticationContext.State
-
getSecurityDomain
SecurityDomain getSecurityDomain()
- Overrides:
getSecurityDomainin classServerAuthenticationContext.State
-
authorizeAnonymous
boolean authorizeAnonymous(boolean requireLoginPermission)
- Overrides:
authorizeAnonymousin classServerAuthenticationContext.State
-
setPrincipal
void setPrincipal(Principal principal, boolean exclusive) throws RealmUnavailableException
- Overrides:
setPrincipalin classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException- Overrides:
authorizein classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
updateCredential
void updateCredential(Credential credential) throws RealmUnavailableException
- Overrides:
updateCredentialin classServerAuthenticationContext.State- Throws:
RealmUnavailableException
-
succeed
void succeed()
- Overrides:
succeedin classServerAuthenticationContext.State
-
fail
void fail(boolean requireInProgress)
- Overrides:
failin classServerAuthenticationContext.State
-
getSourceIdentity
SecurityIdentity getSourceIdentity()
- Specified by:
getSourceIdentityin classServerAuthenticationContext.ActiveState
-
-