public interface SecurityRealm
Modifier and Type | Interface and Description |
---|---|
static class |
SecurityRealm.ServiceUtil |
Modifier and Type | Method and Description |
---|---|
AuthorizingCallbackHandler |
getAuthorizingCallbackHandler(AuthMechanism mechanism) |
Map<String,String> |
getMechanismConfig(AuthMechanism mechanism) |
String |
getName() |
CallbackHandlerFactory |
getSecretCallbackHandlerFactory() |
SSLContext |
getSSLContext()
Used to obtain the SSLContext as configured for this security realm.
|
SubjectIdentity |
getSubjectIdentity(String protocol,
String forHost)
Used to obtain a
SubjectIdentity containing a Subject for the Kerberos server identity represented by this SecurityRealm . |
Set<AuthMechanism> |
getSupportedAuthenticationMechanisms() |
boolean |
isReadyForHttpChallenge()
Indicate of this security realm is ready for challenge/response style HTTP authentication.
|
String getName()
Set<AuthMechanism> getSupportedAuthenticationMechanisms()
Map<String,String> getMechanismConfig(AuthMechanism mechanism)
AuthorizingCallbackHandler getAuthorizingCallbackHandler(AuthMechanism mechanism)
mechanism
- - The mechanism being used for authentication.AuthorizingCallbackHandler
for the specified mechanism.IllegalArgumentException
- If the mechanism is not supported by this realm.boolean isReadyForHttpChallenge()
SSLContext getSSLContext()
CallbackHandlerFactory getSecretCallbackHandlerFactory()
SubjectIdentity getSubjectIdentity(String protocol, String forHost)
SubjectIdentity
containing a Subject
for the Kerberos server identity represented by this SecurityRealm
.
This method can return null
if there is no appropriate identity.protocol
- The protocol in use.forHost
- The name of the host this identity should represent.SubjectIdentity
for the server identity or null
if none are available.Copyright © 2023 JBoss by Red Hat. All rights reserved.