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 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 Details

    • 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object