Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.State
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- Direct Known Subclasses:
ServerAuthenticationContext.ActiveState
,ServerAuthenticationContext.CompleteState
,ServerAuthenticationContext.InactiveState
- Enclosing class:
- ServerAuthenticationContext
abstract static class ServerAuthenticationContext.State extends Object
-
-
Constructor Summary
Constructors Constructor Description State()
-
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)
boolean
canVerifyEvidence()
Indicate whether or not evidence verification is allowed.(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) boolean
importIdentity(SecurityIdentity identity)
boolean
isAuthorized()
Indicate whether or not current state isServerAuthenticationContext.AuthorizedState
.(package private) boolean
isDone()
boolean
isNameAssigned()
Indicate whether or not current state isServerAuthenticationContext.NameAssignedState
.(package private) boolean
isSamePrincipal(Principal principal)
(package private) void
setMechanismInformation(MechanismInformation mechanismInformation)
(package private) void
setMechanismRealmName(String name)
(package private) void
setPrincipal(Principal principal, boolean exclusive)
(package private) void
succeed()
(package private) void
updateCredential(Credential credential)
(package private) boolean
verifyEvidence(Evidence evidence)
-
-
-
Method Detail
-
getMechanismConfiguration
MechanismConfiguration getMechanismConfiguration()
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
-
getAuthorizedIdentity
SecurityIdentity getAuthorizedIdentity()
-
getAuthenticationPrincipal
Principal getAuthenticationPrincipal()
-
isSamePrincipal
boolean isSamePrincipal(Principal principal)
-
getCredentialAcquireSupport
SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
getCredential
<C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
verifyEvidence
boolean verifyEvidence(Evidence evidence) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
importIdentity
boolean importIdentity(SecurityIdentity identity) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
getRealmIdentity
RealmIdentity getRealmIdentity()
-
getSecurityDomain
SecurityDomain getSecurityDomain()
-
authorizeAnonymous
boolean authorizeAnonymous(boolean requireLoginPermission)
-
setMechanismInformation
void setMechanismInformation(MechanismInformation mechanismInformation)
-
setPrincipal
void setPrincipal(Principal principal, boolean exclusive) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
authorize
boolean authorize(Principal authorizationId, boolean authorizeRunAs) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
setMechanismRealmName
void setMechanismRealmName(String name)
-
updateCredential
void updateCredential(Credential credential) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
succeed
void succeed()
-
fail
void fail(boolean requireInProgress)
-
isDone
boolean isDone()
-
addPublicCredential
void addPublicCredential(Credential credential)
-
addPrivateCredential
void addPrivateCredential(Credential credential)
-
addRuntimeAttributes
void addRuntimeAttributes(Attributes runtimeAttributes)
-
isNameAssigned
public boolean isNameAssigned()
Indicate whether or not current state isServerAuthenticationContext.NameAssignedState
.- Returns:
true
if state isServerAuthenticationContext.NameAssignedState
. Otherwise,false
.
-
isAuthorized
public boolean isAuthorized()
Indicate whether or not current state isServerAuthenticationContext.AuthorizedState
.- Returns:
true
if state isServerAuthenticationContext.AuthorizedState
. Otherwise,false
.
-
canVerifyEvidence
public boolean canVerifyEvidence()
Indicate whether or not evidence verification is allowed.- Returns:
true
if evidence verification can be performed. Otherwise,false
.
-
-