Package org.jboss.security.plugins
Class JBossSecuritySubjectFactory
- java.lang.Object
-
- org.jboss.security.plugins.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 Summary
Constructors Constructor Description JBossSecuritySubjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subject
createSubject()
TheSubject
factory method.Subject
createSubject(String securityDomainName)
Create a subject given the security domain namevoid
setSecurityManagement(ISecurityManagement securityManagement)
Sets theISecurityManagement
implementation to be used.
-
-
-
Method Detail
-
createSubject
public Subject createSubject()
Description copied from interface:SubjectFactory
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- Specified by:
createSubject
in interfaceSubjectFactory
- Returns:
- a reference to the constructed
Subject
object. - See Also:
SubjectFactory.createSubject()
-
createSubject
public Subject createSubject(String securityDomainName)
Description copied from interface:SubjectFactory
Create a subject given the security domain name- Specified by:
createSubject
in interfaceSubjectFactory
- Parameters:
securityDomainName
- Name of the Security Domain- Returns:
- See Also:
SubjectFactory.createSubject(String)
-
setSecurityManagement
public void setSecurityManagement(ISecurityManagement securityManagement)
Sets theISecurityManagement
implementation to be used. If this is not set, a default implementation will be used.- Parameters:
securityManagement
- the concrete implementation to be used
-
-