Class JBossSecuritySubjectFactory

  • All Implemented Interfaces:
    SubjectFactory

    public class JBossSecuritySubjectFactory
    extends Object
    implements SubjectFactory
    Create a Subject given the details available via implementation strategies such as SecurityContextAssociation to get hold of the Principal, Credentials, etc
    Version:
    $Revision: 1 $
    Author:
    Anil.Saldhana@redhat.com, Marcus Moyses
    • Constructor Detail

      • JBossSecuritySubjectFactory

        public JBossSecuritySubjectFactory()
    • Method Detail

      • createSubject

        public Subject createSubject()
        Description copied from interface: SubjectFactory

        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

        Specified by:
        createSubject in interface SubjectFactory
        Returns:
        a reference to the constructed Subject object.
        See Also:
        SubjectFactory.createSubject()
      • setSecurityManagement

        public void setSecurityManagement​(ISecurityManagement securityManagement)
        Sets the ISecurityManagement implementation to be used. If this is not set, a default implementation will be used.
        Parameters:
        securityManagement - the concrete implementation to be used