Interface SubjectFactory

  • All Known Implementing Classes:
    JBossSecuritySubjectFactory

    public interface SubjectFactory

    This interface represents a factory for Subjects. Implementations are responsible for creating and populating a Subject object with the relevant information.

    Author:
    Stefan Guilhen, Anil.Saldhana@redhat.com
    • Method Detail

      • createSubject

        Subject createSubject()

        The Subject factory method. Implementations will construct the Subject object and insert all relevant information like credentials, roles, etc into the created object. Note: The Security Domain of "other" is assumed

        Returns:
        a reference to the constructed Subject object.
      • createSubject

        Subject createSubject​(String securityDomain)
        Create a subject given the security domain name
        Parameters:
        securityDomain - Name of the Security Domain
        Returns: