Package org.jboss.security
Interface SubjectFactory
-
- All Known Implementing Classes:
JBossSecuritySubjectFactory
public interface SubjectFactory
This interface represents a factory for
Subject
s. Implementations are responsible for creating and populating aSubject
object with the relevant information.- Author:
- Stefan Guilhen, Anil.Saldhana@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subject
createSubject()
TheSubject
factory method.Subject
createSubject(String securityDomain)
Create a subject given the security domain name
-
-
-
Method Detail
-
createSubject
Subject createSubject()
The
Subject
factory method. Implementations will construct theSubject
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.
-
-