Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.UnassignedState
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.ActiveState
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.UnassignedState
-
- Direct Known Subclasses:
ServerAuthenticationContext.InitialState
,ServerAuthenticationContext.InvalidNameState
,ServerAuthenticationContext.RealmAssignedState
- Enclosing class:
- ServerAuthenticationContext
abstract class ServerAuthenticationContext.UnassignedState extends ServerAuthenticationContext.ActiveState
State shared among both the initial state and the realm-assigned state, where no authentication name is yet set.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SecurityIdentity
capturedIdentity
(package private) MechanismConfiguration
mechanismConfiguration
(package private) IdentityCredentials
privateCredentials
(package private) IdentityCredentials
publicCredentials
(package private) Attributes
runtimeAttributes
-
Constructor Summary
Constructors Constructor Description UnassignedState(SecurityIdentity capturedIdentity, MechanismConfiguration mechanismConfiguration, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
-
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) SupportLevel
getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)
(package private) MechanismConfiguration
getMechanismConfiguration()
(package private) IdentityCredentials
getPrivateCredentials()
(package private) IdentityCredentials
getPublicCredentials()
(package private) Attributes
getRuntimeAttributes()
(package private) SecurityDomain
getSecurityDomain()
(package private) SecurityIdentity
getSourceIdentity()
(package private) boolean
importIdentity(SecurityIdentity importedIdentity)
(package private) void
setPrincipal(Principal principal, boolean exclusive)
(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, getAuthenticationPrincipal, getAuthorizedIdentity, getCredential, getCredentialAcquireSupport, getMechanismRealmConfiguration, getRealmIdentity, isAuthorized, isDone, isNameAssigned, isSamePrincipal, succeed, updateCredential
-
-
-
-
Field Detail
-
capturedIdentity
final SecurityIdentity capturedIdentity
-
mechanismConfiguration
final MechanismConfiguration mechanismConfiguration
-
privateCredentials
final IdentityCredentials privateCredentials
-
publicCredentials
final IdentityCredentials publicCredentials
-
runtimeAttributes
final Attributes runtimeAttributes
-
-
Constructor Detail
-
UnassignedState
UnassignedState(SecurityIdentity capturedIdentity, MechanismConfiguration mechanismConfiguration, IdentityCredentials privateCredentials, IdentityCredentials publicCredentials, Attributes runtimeAttributes)
-
-
Method Detail
-
getSourceIdentity
SecurityIdentity getSourceIdentity()
- Specified by:
getSourceIdentity
in classServerAuthenticationContext.ActiveState
-
getSecurityDomain
SecurityDomain getSecurityDomain()
- Overrides:
getSecurityDomain
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 importedIdentity) 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
-
getPrivateCredentials
IdentityCredentials getPrivateCredentials()
-
getPublicCredentials
IdentityCredentials getPublicCredentials()
-
getRuntimeAttributes
Attributes getRuntimeAttributes()
-
-