Package org.wildfly.security.auth.server
Class ServerAuthenticationContext.AuthorizedState
- java.lang.Object
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.State
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.ActiveState
-
- org.wildfly.security.auth.server.ServerAuthenticationContext.AuthorizedState
-
- Direct Known Subclasses:
ServerAuthenticationContext.AuthorizedAuthenticationState
- Enclosing class:
- ServerAuthenticationContext
class ServerAuthenticationContext.AuthorizedState extends ServerAuthenticationContext.ActiveState
-
-
Field Summary
Fields Modifier and Type Field Description private Principal
authenticationPrincipal
private SecurityIdentity
authorizedIdentity
private MechanismConfiguration
mechanismConfiguration
private MechanismRealmConfiguration
mechanismRealmConfiguration
private RealmInfo
realmInfo
-
Constructor Summary
Constructors Constructor Description AuthorizedState(SecurityIdentity authorizedIdentity, Principal authenticationPrincipal, RealmInfo realmInfo, MechanismConfiguration mechanismConfiguration, MechanismRealmConfiguration mechanismRealmConfiguration)
-
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) ServerAuthenticationContext.AuthorizedState
authorizeRunAs(Principal authorizationId, boolean authorizeRunAs)
(package private) Principal
getAuthenticationPrincipal()
(package private) SecurityIdentity
getAuthorizedIdentity()
(package private) MechanismConfiguration
getMechanismConfiguration()
(package private) MechanismRealmConfiguration
getMechanismRealmConfiguration()
(package private) RealmInfo
getRealmInfo()
(package private) SecurityDomain
getSecurityDomain()
(package private) SecurityIdentity
getSourceIdentity()
(package private) boolean
isSamePrincipal(Principal principal)
(package private) void
succeed()
-
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
authorizeAnonymous, canVerifyEvidence, fail, getCredential, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, importIdentity, isAuthorized, isDone, isNameAssigned, setPrincipal, updateCredential, verifyEvidence
-
-
-
-
Field Detail
-
authorizedIdentity
private final SecurityIdentity authorizedIdentity
-
authenticationPrincipal
private final Principal authenticationPrincipal
-
realmInfo
private final RealmInfo realmInfo
-
mechanismConfiguration
private final MechanismConfiguration mechanismConfiguration
-
mechanismRealmConfiguration
private final MechanismRealmConfiguration mechanismRealmConfiguration
-
-
Constructor Detail
-
AuthorizedState
AuthorizedState(SecurityIdentity authorizedIdentity, Principal authenticationPrincipal, RealmInfo realmInfo, MechanismConfiguration mechanismConfiguration, MechanismRealmConfiguration mechanismRealmConfiguration)
-
-
Method Detail
-
getMechanismRealmConfiguration
MechanismRealmConfiguration getMechanismRealmConfiguration()
- Overrides:
getMechanismRealmConfiguration
in classServerAuthenticationContext.State
-
getMechanismConfiguration
MechanismConfiguration getMechanismConfiguration()
- Overrides:
getMechanismConfiguration
in classServerAuthenticationContext.State
-
getAuthorizedIdentity
SecurityIdentity getAuthorizedIdentity()
- Overrides:
getAuthorizedIdentity
in classServerAuthenticationContext.State
-
getAuthenticationPrincipal
Principal getAuthenticationPrincipal()
- Overrides:
getAuthenticationPrincipal
in classServerAuthenticationContext.State
-
getSecurityDomain
SecurityDomain getSecurityDomain()
- Overrides:
getSecurityDomain
in classServerAuthenticationContext.State
-
getSourceIdentity
SecurityIdentity getSourceIdentity()
- Specified by:
getSourceIdentity
in classServerAuthenticationContext.ActiveState
-
isSamePrincipal
boolean isSamePrincipal(Principal principal)
- Overrides:
isSamePrincipal
in classServerAuthenticationContext.State
-
getRealmInfo
RealmInfo getRealmInfo()
-
authorize
boolean authorize(boolean requireLoginPermission) throws RealmUnavailableException
- Overrides:
authorize
in classServerAuthenticationContext.State
- Throws:
RealmUnavailableException
-
authorizeRunAs
ServerAuthenticationContext.AuthorizedState authorizeRunAs(Principal authorizationId, boolean authorizeRunAs) throws RealmUnavailableException
- Throws:
RealmUnavailableException
-
succeed
void succeed()
- Overrides:
succeed
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
-
-