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 SubjectcreateSubject()TheSubjectfactory method.SubjectcreateSubject(String securityDomainName)Create a subject given the security domain namevoidsetSecurityManagement(ISecurityManagement securityManagement)Sets theISecurityManagementimplementation to be used.
-
-
-
Method Detail
-
createSubject
public Subject createSubject()
Description copied from interface:SubjectFactoryThe
Subjectfactory method. Implementations will construct theSubjectobject and insert all relevant information like credentials, roles, etc into the created object. Note: The Security Domain of "other" is assumed- Specified by:
createSubjectin interfaceSubjectFactory- Returns:
- a reference to the constructed
Subjectobject. - See Also:
SubjectFactory.createSubject()
-
createSubject
public Subject createSubject(String securityDomainName)
Description copied from interface:SubjectFactoryCreate a subject given the security domain name- Specified by:
createSubjectin interfaceSubjectFactory- Parameters:
securityDomainName- Name of the Security Domain- Returns:
- See Also:
SubjectFactory.createSubject(String)
-
setSecurityManagement
public void setSecurityManagement(ISecurityManagement securityManagement)
Sets theISecurityManagementimplementation to be used. If this is not set, a default implementation will be used.- Parameters:
securityManagement- the concrete implementation to be used
-
-