Class AbstractInternalSystemAdministrator
- java.lang.Object
-
- org.glassfish.security.services.api.authentication.AbstractInternalSystemAdministrator
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
,InternalSystemAdministrator
- Direct Known Subclasses:
NucleusInternalSystemAdministrator
public abstract class AbstractInternalSystemAdministrator extends Object implements InternalSystemAdministrator, org.glassfish.hk2.api.PostConstruct
Implements most of the internal system administrator.Different concrete subclasses implement
getAdminGroupName()
andgetInternalUsername()
andcreateSubject()
differently.- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description AbstractInternalSystemAdministrator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Subject
createSubject()
Creates a subject using the impersonate method on the authentication service.protected abstract String
getAdminGroupName()
protected abstract String
getInternalUsername()
Subject
getSubject()
void
postConstruct()
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
getSubject
public Subject getSubject()
- Specified by:
getSubject
in interfaceInternalSystemAdministrator
-
createSubject
protected Subject createSubject()
Creates a subject using the impersonate method on the authentication service.- Returns:
- the Subject to use for the internal system administrator.
-
getInternalUsername
protected abstract String getInternalUsername()
-
getAdminGroupName
protected abstract String getAdminGroupName()
-
-