connector/src/main/java/org/jboss/as/connector/security/ElytronSubjectFactory.java
public Subject createSubject(final String authenticationContextName) {
        AuthenticationContext context;
        if (authenticationContextName != null && !authenticationContextName.isEmpty()) {
            final ServiceContainer container = this.currentServiceContainer();
            final ServiceName authContextServiceName = AUTHENTICATION_CONTEXT_RUNTIME_CAPABILITY.getCapabilityServiceName(authenticationContextName);
            context = (AuthenticationContext) container.getRequiredService(authContextServiceName).getValue();
        }
        else {
            context = getAuthenticationContext();
        }
        final Subject subject = this.createSubject(context);
        if (ROOT_LOGGER.isTraceEnabled()) {
            ROOT_LOGGER.subject(subject, Integer.toHexString(System.identityHashCode(subject)));
        }
        return subject;
    }
public Subject createSubject(final String authenticationContextName) {
        AuthenticationContext context;
        if (authenticationContextName != null && !authenticationContextName.isEmpty()) {
            final ServiceContainer container = this.currentServiceContainer();
            final ServiceName authContextServiceName = AUTHENTICATION_CONTEXT_RUNTIME_CAPABILITY.getCapabilityServiceName(authenticationContextName);
            context = (AuthenticationContext) container.getRequiredService(authContextServiceName).getValue();
        }
        else {
            context = getAuthenticationContext();
        }
        final Subject subject = this.createSubject(context);
        if (ROOT_LOGGER.isTraceEnabled()) {
            ROOT_LOGGER.subject(subject, Integer.toHexString(System.identityHashCode(subject)));
        }
        return subject;
    }
public Subject createSubject ( final String authenticationContextName ) { AuthenticationContext context ; if ( authenticationContextName != null && ! authenticationContextName . isEmpty ( ) ) { final ServiceContainer container = this . currentServiceContainer ( ) ; final ServiceName authContextServiceName = AUTHENTICATION_CONTEXT_RUNTIME_CAPABILITY . getCapabilityServiceName ( authenticationContextName ) ; context = ( AuthenticationContext ) container . getRequiredService ( authContextServiceName ) . getValue ( ) ; } else { context = getAuthenticationContext ( ) ; } final Subject subject = this . createSubject ( context ) ; if ( ROOT_LOGGER . isTraceEnabled ( ) ) { ROOT_LOGGER . subject ( subject , Integer . toHexString ( System . identityHashCode ( subject ) ) ) ; } return subject ; }
{@inheritDoc}
{