Class ElytronSecurityContext

java.lang.Object
org.jboss.as.connector.security.ElytronSecurityContext
All Implemented Interfaces:
org.jboss.jca.core.spi.security.SecurityContext

public class ElytronSecurityContext extends Object implements org.jboss.jca.core.spi.security.SecurityContext
An Elytron based SecurityContext implementation.
Author:
Flavia Rainone, Stefan Guilhen
  • Constructor Details

    • ElytronSecurityContext

      public ElytronSecurityContext()
  • Method Details

    • getAuthenticatedSubject

      public Subject getAuthenticatedSubject()
      Specified by:
      getAuthenticatedSubject in interface org.jboss.jca.core.spi.security.SecurityContext
    • setAuthenticatedSubject

      public void setAuthenticatedSubject(Subject subject)
      Specified by:
      setAuthenticatedSubject in interface org.jboss.jca.core.spi.security.SecurityContext
    • getRoles

      public String[] getRoles()
      Specified by:
      getRoles in interface org.jboss.jca.core.spi.security.SecurityContext
    • runWork

      public void runWork(Runnable work)
      Runs the work contained in as an authenticated Identity.
      Parameters:
      work - executes the work
    • getPrivateCredentials

      protected <T> Set<T> getPrivateCredentials(Class<T> credentialClass)