public class SecurityRealmService extends Object implements org.jboss.msc.service.Service<SecurityRealm>, SecurityRealm
SecurityRealm.ServiceUtil
Modifier and Type | Field and Description |
---|---|
static String |
LOADED_USERNAME_KEY |
static String |
SKIP_GROUP_LOADING_KEY |
Constructor and Description |
---|
SecurityRealmService(String name,
boolean mapGroupsToRoles) |
Modifier and Type | Method and Description |
---|---|
AuthorizingCallbackHandler |
getAuthorizingCallbackHandler(AuthMechanism mechanism) |
org.jboss.msc.value.InjectedSetValue<CallbackHandlerService> |
getCallbackHandlerService() |
org.jboss.msc.value.InjectedValue<org.jboss.as.domain.management.security.KeytabIdentityFactoryService> |
getKeytabIdentityFactoryInjector() |
Map<String,String> |
getMechanismConfig(AuthMechanism mechanism) |
String |
getName() |
org.jboss.msc.value.InjectedValue<CallbackHandlerFactory> |
getSecretCallbackFactory() |
CallbackHandlerFactory |
getSecretCallbackHandlerFactory() |
SSLContext |
getSSLContext()
Used to obtain the SSLContext as configured for this security realm.
|
org.jboss.msc.value.InjectedValue<SSLContext> |
getSSLContextInjector() |
SubjectIdentity |
getSubjectIdentity(String protocol,
String forHost)
Used to obtain a
SubjectIdentity containing a Subject for the Kerberos server identity represented by this SecurityRealm . |
org.jboss.msc.value.InjectedValue<SubjectSupplementalService> |
getSubjectSupplementalInjector() |
Set<AuthMechanism> |
getSupportedAuthenticationMechanisms() |
SecurityRealmService |
getValue() |
boolean |
isReadyForHttpChallenge()
Indicate of this security realm is ready for challenge/response style HTTP authentication.
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final String LOADED_USERNAME_KEY
public static final String SKIP_GROUP_LOADING_KEY
public SecurityRealmService(String name, boolean mapGroupsToRoles)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<SecurityRealm>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<SecurityRealm>
public SecurityRealmService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<SecurityRealm>
IllegalStateException
IllegalArgumentException
public String getName()
getName
in interface SecurityRealm
public Set<AuthMechanism> getSupportedAuthenticationMechanisms()
getSupportedAuthenticationMechanisms
in interface SecurityRealm
public Map<String,String> getMechanismConfig(AuthMechanism mechanism)
getMechanismConfig
in interface SecurityRealm
public boolean isReadyForHttpChallenge()
SecurityRealm
isReadyForHttpChallenge
in interface SecurityRealm
public AuthorizingCallbackHandler getAuthorizingCallbackHandler(AuthMechanism mechanism)
getAuthorizingCallbackHandler
in interface SecurityRealm
mechanism
- - The mechanism being used for authentication.AuthorizingCallbackHandler
for the specified mechanism.public SubjectIdentity getSubjectIdentity(String protocol, String forHost)
SecurityRealm
SubjectIdentity
containing a Subject
for the Kerberos server identity represented by this SecurityRealm
.
This method can return null
if there is no appropriate identity.getSubjectIdentity
in interface SecurityRealm
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.public org.jboss.msc.value.InjectedValue<SubjectSupplementalService> getSubjectSupplementalInjector()
public org.jboss.msc.value.InjectedValue<SSLContext> getSSLContextInjector()
public org.jboss.msc.value.InjectedValue<CallbackHandlerFactory> getSecretCallbackFactory()
public org.jboss.msc.value.InjectedValue<org.jboss.as.domain.management.security.KeytabIdentityFactoryService> getKeytabIdentityFactoryInjector()
public org.jboss.msc.value.InjectedSetValue<CallbackHandlerService> getCallbackHandlerService()
public SSLContext getSSLContext()
SecurityRealm
getSSLContext
in interface SecurityRealm
public CallbackHandlerFactory getSecretCallbackHandlerFactory()
getSecretCallbackHandlerFactory
in interface SecurityRealm
Copyright © 2023 JBoss by Red Hat. All rights reserved.