Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.NameAssignedState
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.ActiveState
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.NameAssignedState
-
- Enclosing class:
- ServerAuthenticationContext
final class ServerAuthenticationContext.NameAssignedState extends ServerAuthenticationContext.ActiveState
-
-
Field Summary
Fields Modifier and Type Field Description private Principal
authenticationPrincipal
private SecurityIdentity
capturedIdentity
private MechanismConfiguration
mechanismConfiguration
private MechanismRealmConfiguration
mechanismRealmConfiguration
private IdentityCredentials
privateCredentials
private IdentityCredentials
publicCredentials
private RealmIdentity
realmIdentity
private RealmInfo
realmInfo
private Attributes
runtimeAttributes
-
Constructor Summary
Constructors Constructor Description NameAssignedState(SecurityIdentity capturedIdentity, RealmInfo realmInfo, RealmIdentity realmIdentity, Principal authenticationPrincipal, MechanismConfiguration mechanismConfiguration, MechanismRealmConfiguration mechanismRealmConfiguration, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
-
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) boolean
authorize(boolean requireLoginPermission)
(package private) boolean
authorize(Principal authorizationId, boolean authorizeRunAs)
(package private) ServerAuthenticationContext.AuthorizedAuthenticationState
doAuthorization(boolean requireLoginPermission)
(package private) void
fail(boolean requireInProgress)
(package private) Principal
getAuthenticationPrincipal()
(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) RealmInfo
getRealmInfo()
(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
setMechanismInformation, setMechanismRealmName
-
Methods inherited from class org.wildfly.security.auth.server.ServerAuthenticationContext.State
authorizeAnonymous, canVerifyEvidence, getAuthorizedIdentity, importIdentity, isAuthorized, isDone, isNameAssigned
-
-
-
-
Field Detail
-
capturedIdentity
private final SecurityIdentity capturedIdentity
-
realmInfo
private final RealmInfo realmInfo
-
realmIdentity
private final RealmIdentity realmIdentity
-
authenticationPrincipal
private final Principal authenticationPrincipal
-
mechanismConfiguration
private final MechanismConfiguration mechanismConfiguration
-
mechanismRealmConfiguration
private final MechanismRealmConfiguration mechanismRealmConfiguration
-
privateCredentials
private final IdentityCredentials privateCredentials
-
publicCredentials
private final IdentityCredentials publicCredentials
-
runtimeAttributes
private final Attributes runtimeAttributes
-
-
Constructor Detail
-
NameAssignedState
NameAssignedState(SecurityIdentity capturedIdentity, RealmInfo realmInfo, RealmIdentity realmIdentity, Principal authenticationPrincipal, MechanismConfiguration mechanismConfiguration, MechanismRealmConfiguration mechanismRealmConfiguration, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
-
-
Method Detail
-
getMechanismConfiguration
MechanismConfiguration getMechanismConfiguration()
- Overrides:
getMechanismConfiguration
in classServerAuthenticationContext.State
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
- Overrides:
getMechanismRealmConfiguration
in classServerAuthenticationContext.State
-
getAuthenticationPrincipal
Principal getAuthenticationPrincipal()
- Overrides:
getAuthenticationPrincipal
in classServerAuthenticationContext.State
-
getRealmIdentity
RealmIdentity getRealmIdentity()
- Overrides:
getRealmIdentity
in classServerAuthenticationContext.State
-
getSecurityDomain
SecurityDomain getSecurityDomain()
- Overrides:
getSecurityDomain
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
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException
- Overrides:
authorize
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
doAuthorization
ServerAuthenticationContext.AuthorizedAuthenticationState doAuthorization(boolean requireLoginPermission) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
authorize
boolean authorize(Principal authorizationId, boolean authorizeRunAs) throws RealmUnavailableException
- Overrides:
authorize
in classServerAuthenticationContext.ActiveState
- Throws:
RealmUnavailableException
-
getSourceIdentity
SecurityIdentity getSourceIdentity()
- Specified by:
getSourceIdentity
in classServerAuthenticationContext.ActiveState
-
verifyEvidence
boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException
- Overrides:
verifyEvidence
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
-
setPrincipal
void setPrincipal(Principal principal, boolean exclusive)
- Overrides:
setPrincipal
in classServerAuthenticationContext.State
-
isSamePrincipal
boolean isSamePrincipal(Principal principal)
- Overrides:
isSamePrincipal
in classServerAuthenticationContext.State
-
addPublicCredential
void addPublicCredential(Credential credential)
- Overrides:
addPublicCredential
in classServerAuthenticationContext.State
-
addPrivateCredential
void addPrivateCredential(Credential credential)
- Overrides:
addPrivateCredential
in classServerAuthenticationContext.State
-
addRuntimeAttributes
void addRuntimeAttributes(Attributes runtimeAttributes)
- Overrides:
addRuntimeAttributes
in classServerAuthenticationContext.State
-
getRealmInfo
RealmInfo getRealmInfo()
-
-