|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.provider.ChainingSecurityContext
This is the basic abstract class for all security contexts that should chain to children security contexts.
Constructor Summary | |
ChainingSecurityContext()
|
Method Summary | |
void |
addSubContext(java.lang.String name,
ISecurityContext ctx)
Adds a named sub context to the list of subserviant subcontexts. |
void |
authenticate()
We walk the chain of subcontext assigning principals and opaquecredentials from the parent. |
boolean |
doesSubContextExist(java.lang.String name)
|
IAdditionalDescriptor |
getAdditionalDescriptor()
Returns any additional descriptor information that might have been acquired during the process of authentication. |
IOpaqueCredentials |
getOpaqueCredentials()
Returns any credentials that an authenticated principal currently has. |
IOpaqueCredentials |
getOpaqueCredentialsInstance()
Returns an empty object reference to an object implementing the IOpaqueCredentials interface. |
IPrincipal |
getPrincipal()
Returns the currently authenticated principal if we are currently authenticated. |
IPrincipal |
getPrincipalInstance()
Returns an empty object reference to an object implementing the Principal interface. |
ISecurityContext |
getSubContext(java.lang.String name)
Returns an ISecurityContext for the named subserviant security
context. |
java.util.Enumeration |
getSubContextNames()
Returns an enumeration of the names of the security contexts currently registered as being subserviant to this one. |
java.util.Enumeration |
getSubContexts()
Returns an enumeration of the security contexts currently registered as being subserviant to this one. |
boolean |
isAuthenticated()
Returns a boolean status as to whether the descriptor corresponds to an authenticated principal. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jasig.portal.security.ISecurityContext |
getAuthType |
Constructor Detail |
public ChainingSecurityContext()
Method Detail |
public IPrincipal getPrincipalInstance()
ISecurityContext
getPrincipalInstance
in interface ISecurityContext
IPrincipal
public IOpaqueCredentials getOpaqueCredentialsInstance()
ISecurityContext
getOpaqueCredentialsInstance
in interface ISecurityContext
IOpaqueCredentials
public void authenticate() throws PortalSecurityException
authenticate
in interface ISecurityContext
PortalSecurityException
ISecurityContext.getPrincipalInstance()
,
ISecurityContext.getOpaqueCredentialsInstance()
public IPrincipal getPrincipal()
ISecurityContext
getPrincipal
in interface ISecurityContext
public IOpaqueCredentials getOpaqueCredentials()
ISecurityContext
getOpaqueCredentials
in interface ISecurityContext
IOpaqueCredentials
public IAdditionalDescriptor getAdditionalDescriptor()
ISecurityContext
getAdditionalDescriptor
in interface ISecurityContext
IAdditionalDescriptor
public boolean isAuthenticated()
ISecurityContext
true
.
isAuthenticated
in interface ISecurityContext
public ISecurityContext getSubContext(java.lang.String name)
ISecurityContext
ISecurityContext
for the named subserviant security
context.
getSubContext
in interface ISecurityContext
name
- The non-compound name of the subserviant security context.
public boolean doesSubContextExist(java.lang.String name)
public java.util.Enumeration getSubContexts()
ISecurityContext
getSubContexts
in interface ISecurityContext
public void addSubContext(java.lang.String name, ISecurityContext ctx) throws PortalSecurityException
ISecurityContext
addSubContext
in interface ISecurityContext
name
- The non-compound name of the subserviant context. Note that
under normal circumstances the establishment of the InitialSecurityContext
will automatically register all subcontext.ctx
- The security context object to register.
PortalSecurityException
public java.util.Enumeration getSubContextNames()
ISecurityContext
getSubContextNames
in interface ISecurityContext
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |