Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.InactiveState
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.InactiveState
-
- Enclosing class:
- ServerAuthenticationContext
final class ServerAuthenticationContext.InactiveState extends ServerAuthenticationContext.State
-
-
Field Summary
Fields Modifier and Type Field Description private SecurityIdentity
capturedIdentity
private MechanismConfigurationSelector
mechanismConfigurationSelector
private MechanismInformation
mechanismInformation
private IdentityCredentials
privateCredentials
private IdentityCredentials
publicCredentials
private Attributes
runtimeAttributes
-
Constructor Summary
Constructors Constructor Description InactiveState(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
InactiveState(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector, MechanismInformation mechanismInformation, 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) boolean
authorizeAnonymous(boolean requireLoginPermission)
(package private) void
fail(boolean requireInProgress)
(package private) SupportLevel
getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)
(package private) MechanismConfiguration
getMechanismConfiguration()
(package private) MechanismRealmConfiguration
getMechanismRealmConfiguration()
(package private) SecurityDomain
getSecurityDomain()
(package private) boolean
importIdentity(SecurityIdentity identity)
private ServerAuthenticationContext.InitialState
selectMechanismConfiguration()
(package private) void
setMechanismInformation(MechanismInformation mechanismInformation)
(package private) void
setMechanismRealmName(String name)
(package private) void
setPrincipal(Principal principal, boolean exclusive)
private void
transition()
(package private) boolean
verifyEvidence(Evidence evidence)
-
Methods inherited from class org.wildfly.security.auth.server.ServerAuthenticationContext.State
canVerifyEvidence, getAuthenticationPrincipal, getAuthorizedIdentity, getCredential, getCredentialAcquireSupport, getRealmIdentity, isAuthorized, isDone, isNameAssigned, isSamePrincipal, succeed, updateCredential
-
-
-
-
Field Detail
-
capturedIdentity
private final SecurityIdentity capturedIdentity
-
mechanismConfigurationSelector
private final MechanismConfigurationSelector mechanismConfigurationSelector
-
mechanismInformation
private final MechanismInformation mechanismInformation
-
privateCredentials
private final IdentityCredentials privateCredentials
-
publicCredentials
private final IdentityCredentials publicCredentials
-
runtimeAttributes
private final Attributes runtimeAttributes
-
-
Constructor Detail
-
InactiveState
public InactiveState(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
-
InactiveState
public InactiveState(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector, MechanismInformation mechanismInformation, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
-
-
Method Detail
-
setMechanismInformation
void setMechanismInformation(MechanismInformation mechanismInformation)
- Overrides:
setMechanismInformation
in classServerAuthenticationContext.State
-
getSecurityDomain
SecurityDomain getSecurityDomain()
- Overrides:
getSecurityDomain
in classServerAuthenticationContext.State
-
authorize
boolean authorize(Principal authorizationId, boolean authorizeRunAs) throws RealmUnavailableException
- Overrides:
authorize
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
setMechanismRealmName
void setMechanismRealmName(String name)
- Overrides:
setMechanismRealmName
in classServerAuthenticationContext.State
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
- Overrides:
getMechanismRealmConfiguration
in classServerAuthenticationContext.State
-
fail
void fail(boolean requireInProgress)
- Overrides:
fail
in classServerAuthenticationContext.State
-
authorizeAnonymous
boolean authorizeAnonymous(boolean requireLoginPermission)
- Overrides:
authorizeAnonymous
in classServerAuthenticationContext.State
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException
- Overrides:
authorize
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
importIdentity
boolean importIdentity(SecurityIdentity identity) throws RealmUnavailableException
- Overrides:
importIdentity
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Overrides:
getEvidenceVerifySupport
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
verifyEvidence
boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException
- Overrides:
verifyEvidence
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
setPrincipal
void setPrincipal(Principal principal, boolean exclusive) throws RealmUnavailableException
- Overrides:
setPrincipal
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
getMechanismConfiguration
MechanismConfiguration getMechanismConfiguration()
- Overrides:
getMechanismConfiguration
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
-
transition
private void transition()
-
selectMechanismConfiguration
private ServerAuthenticationContext.InitialState selectMechanismConfiguration()
-
-