Class 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 based SubjectFactory implementation. It uses an AuthenticationContext to select a configuration that matches the resource URI to obtain the username and password pair that will be inserted into the constructed Subject instance.
    Author:
    Flavia Rainone, Stefan Guilhen
    • Constructor Detail

      • ElytronSubjectFactory

        public ElytronSubjectFactory()
        Constructor
      • ElytronSubjectFactory

        public ElytronSubjectFactory​(org.wildfly.security.auth.client.AuthenticationContext authenticationContext,
                                     URI targetURI)
        Constructor.
        Parameters:
        targetURI - the URI of the target.
    • Method Detail

      • createSubject

        public Subject createSubject()
        Specified by:
        createSubject in interface org.jboss.jca.core.spi.security.SubjectFactory
      • createSubject

        public Subject createSubject​(String authenticationContextName)
        Specified by:
        createSubject in interface org.jboss.jca.core.spi.security.SubjectFactory