org.jboss.jca.core.spi.security

## Interface SecurityContext

-     public interface SecurityContext

  SecurityContext
  Author:
    Jesper Pedersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.security.auth.Subject` | `getAuthenticatedSubject()` Get the authenticated subject
    `java.lang.String[]` | `getRoles()` Get the associated role names
    `void` | `setAuthenticatedSubject(javax.security.auth.Subject subject)` Set the authenticated subject

- - ### Method Detail

    - #### getAuthenticatedSubject

          javax.security.auth.Subject getAuthenticatedSubject()

      Get the authenticated subject
      Returns:
        The Subject, or `null` if unauthenticated

    - #### setAuthenticatedSubject

          void setAuthenticatedSubject(javax.security.auth.Subject subject)

      Set the authenticated subject
      Parameters:
        `subject` - The Subject

    - #### getRoles

          java.lang.String[] getRoles()

      Get the associated role names
      Returns:
        The role names, or `null` if none

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)