public class SecurityRealmService extends Object implements org.jboss.msc.service.Service<SecurityRealm>, SecurityRealm
SecurityRealm.ServiceUtil| Modifier and Type | Field and Description |
|---|---|
static Oid |
KERBEROS_V5 |
static String |
LOADED_USERNAME_KEY |
static String |
SKIP_GROUP_LOADING_KEY |
static Oid |
SPNEGO |
| Constructor and Description |
|---|
SecurityRealmService(Consumer<SecurityRealm> securityRealmConsumer,
Supplier<SubjectSupplementalService> subjectSupplementalSupplier,
Supplier<CallbackHandlerFactory> secretCallbackFactorySupplier,
Supplier<org.jboss.as.domain.management.security.KeytabIdentityFactoryService> keytabFactorySupplier,
Supplier<SSLContext> sslContextSupplier,
Supplier<String> tmpDirPathSupplier,
Set<Supplier<CallbackHandlerService>> callbackHandlerServices,
String name,
boolean mapGroupsToRoles) |
SecurityRealmService(String name,
boolean mapGroupsToRoles)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static org.wildfly.security.permission.PermissionVerifier |
createPermissionVerifier() |
AuthorizingCallbackHandler |
getAuthorizingCallbackHandler(AuthMechanism mechanism) |
org.wildfly.security.auth.server.HttpAuthenticationFactory |
getHttpAuthenticationFactory()
Get a
HttpAuthenticationFactory backed by this SecurityRealm. |
Map<String,String> |
getMechanismConfig(AuthMechanism mechanism) |
String |
getName() |
org.wildfly.security.auth.server.SaslAuthenticationFactory |
getSaslAuthenticationFactory()
Get a
SaslAuthenticationFactory backed by this SecurityRealm. |
org.wildfly.security.auth.server.SaslAuthenticationFactory |
getSaslAuthenticationFactory(String[] mechanismNames,
Boolean policyNoanonymous)
Get a
SaslAuthenticationFactory backed by this SecurityRealm. |
CallbackHandlerFactory |
getSecretCallbackHandlerFactory() |
SSLContext |
getSSLContext()
Used to obtain the SSLContext as configured for this security realm.
|
org.jboss.msc.value.InjectedValue<SSLContext> |
getSSLContextInjector()
Deprecated.
|
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() |
org.jboss.msc.inject.Injector<String> |
getTmpDirPathInjector()
Deprecated.
|
SecurityRealm |
getValue()
Deprecated.
|
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 static final Oid KERBEROS_V5
public static final Oid SPNEGO
@Deprecated public SecurityRealmService(String name, boolean mapGroupsToRoles)
public SecurityRealmService(Consumer<SecurityRealm> securityRealmConsumer, Supplier<SubjectSupplementalService> subjectSupplementalSupplier, Supplier<CallbackHandlerFactory> secretCallbackFactorySupplier, Supplier<org.jboss.as.domain.management.security.KeytabIdentityFactoryService> keytabFactorySupplier, Supplier<SSLContext> sslContextSupplier, Supplier<String> tmpDirPathSupplier, Set<Supplier<CallbackHandlerService>> callbackHandlerServices, String name, boolean mapGroupsToRoles)
@Deprecated public org.jboss.msc.value.InjectedValue<SSLContext> getSSLContextInjector()
@Deprecated public org.jboss.msc.inject.Injector<String> getTmpDirPathInjector()
@Deprecated public SecurityRealm getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<SecurityRealm>IllegalStateExceptionIllegalArgumentExceptionpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic static org.wildfly.security.permission.PermissionVerifier createPermissionVerifier()
public String getName()
getName in interface SecurityRealmpublic Set<AuthMechanism> getSupportedAuthenticationMechanisms()
getSupportedAuthenticationMechanisms in interface SecurityRealmpublic Map<String,String> getMechanismConfig(AuthMechanism mechanism)
getMechanismConfig in interface SecurityRealmpublic boolean isReadyForHttpChallenge()
SecurityRealmisReadyForHttpChallenge in interface SecurityRealmpublic AuthorizingCallbackHandler getAuthorizingCallbackHandler(AuthMechanism mechanism)
getAuthorizingCallbackHandler in interface SecurityRealmmechanism - - The mechanism being used for authentication.AuthorizingCallbackHandler for the specified mechanism.public SubjectIdentity getSubjectIdentity(String protocol, String forHost)
SecurityRealmSubjectIdentity 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 SecurityRealmprotocol - 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.wildfly.security.auth.server.SaslAuthenticationFactory getSaslAuthenticationFactory()
SecurityRealmSaslAuthenticationFactory backed by this SecurityRealm.getSaslAuthenticationFactory in interface SecurityRealmSaslAuthenticationFactory backed by this SecurityRealm.public org.wildfly.security.auth.server.SaslAuthenticationFactory getSaslAuthenticationFactory(String[] mechanismNames, Boolean policyNoanonymous) throws org.jboss.msc.service.StartException
SecurityRealmSaslAuthenticationFactory backed by this SecurityRealm.getSaslAuthenticationFactory in interface SecurityRealmmechanismNames - Allowed mechanisms defined in remoting subsystem by property SASL_MECHANISMSpolicyNoanonymous - Value of parameter SASL_POLICY_NOANONYMOUSSaslAuthenticationFactory backed by this SecurityRealm.org.jboss.msc.service.StartException - When any of mechanismNames is not suuported.public org.wildfly.security.auth.server.HttpAuthenticationFactory getHttpAuthenticationFactory()
SecurityRealmHttpAuthenticationFactory backed by this SecurityRealm.getHttpAuthenticationFactory in interface SecurityRealmHttpAuthenticationFactory backed by this SecurityRealm.public SSLContext getSSLContext()
SecurityRealmgetSSLContext in interface SecurityRealmpublic CallbackHandlerFactory getSecretCallbackHandlerFactory()
getSecretCallbackHandlerFactory in interface SecurityRealmCopyright © 2019 JBoss by Red Hat. All rights reserved.