Package org.jboss.as.connector.security
Class ElytronSubjectFactory
- java.lang.Object
-
- org.jboss.as.connector.security.ElytronSubjectFactory
-
- All Implemented Interfaces:
Capabilities,org.jboss.jca.core.spi.security.SubjectFactory
public class ElytronSubjectFactory extends Object implements org.jboss.jca.core.spi.security.SubjectFactory, Capabilities
An Elytron basedSubjectFactoryimplementation. It uses anAuthenticationContextto select a configuration that matches the resourceURIto obtain the username and password pair that will be inserted into the constructedSubjectinstance.- Author:
- Flavia Rainone, Stefan Guilhen
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.connector._private.Capabilities
AUTHENTICATION_CONTEXT_CAPABILITY, DATA_SOURCE_CAPABILITY, DATA_SOURCE_CAPABILITY_NAME, ELYTRON_SECURITY_DOMAIN_CAPABILITY, JCA_NAMING_CAPABILITY, JCA_NAMING_CAPABILITY_NAME, RESOURCE_ADAPTER_CAPABILITY, RESOURCE_ADAPTER_CAPABILITY_NAME
-
-
Constructor Summary
Constructors Constructor Description ElytronSubjectFactory()ConstructorElytronSubjectFactory(org.wildfly.security.auth.client.AuthenticationContext authenticationContext, URI targetURI)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectcreateSubject()SubjectcreateSubject(String authenticationContextName)StringtoString()
-
-
-
Method Detail
-
createSubject
public Subject createSubject()
- Specified by:
createSubjectin interfaceorg.jboss.jca.core.spi.security.SubjectFactory
-
createSubject
public Subject createSubject(String authenticationContextName)
- Specified by:
createSubjectin interfaceorg.jboss.jca.core.spi.security.SubjectFactory
-
-