|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.provider.ChainingSecurityContext
public abstract class ChainingSecurityContext
This is the basic abstract class for all security contexts that should chain to children security contexts.
| Nested Class Summary | |
|---|---|
class |
ChainingSecurityContext.ChainingAdditionalDescriptor
A default, placeholder implementation of IAdditionalDescriptor an instance of which is the default value for the instance variable "myAdditionalDescriptor" of instances of this class. |
protected class |
ChainingSecurityContext.ChainingOpaqueCredentials
|
protected class |
ChainingSecurityContext.ChainingPrincipal
|
| Field Summary | |
|---|---|
protected boolean |
isauth
|
protected org.apache.commons.logging.Log |
log
|
protected IAdditionalDescriptor |
myAdditionalDescriptor
|
protected ChainingSecurityContext.ChainingOpaqueCredentials |
myOpaqueCredentials
|
protected Comparator |
myOrder
|
protected ChainingSecurityContext.ChainingPrincipal |
myPrincipal
|
protected Vector |
mySubContexts
|
protected static boolean |
stopWhenAuthenticated
|
| Constructor Summary | |
|---|---|
ChainingSecurityContext()
|
|
| Method Summary | |
|---|---|
void |
addSubContext(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(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(String name)
Returns an ISecurityContext for the named subserviant security
context. |
Enumeration |
getSubContextNames()
Returns an enumeration of the names of the security contexts currently registered as being subserviant to this one. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.security.ISecurityContext |
|---|
getAuthType |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
protected static boolean stopWhenAuthenticated
protected boolean isauth
protected Vector mySubContexts
protected ChainingSecurityContext.ChainingPrincipal myPrincipal
protected ChainingSecurityContext.ChainingOpaqueCredentials myOpaqueCredentials
protected IAdditionalDescriptor myAdditionalDescriptor
protected Comparator myOrder
| Constructor Detail |
|---|
public ChainingSecurityContext()
| Method Detail |
|---|
public IPrincipal getPrincipalInstance()
ISecurityContext
getPrincipalInstance in interface ISecurityContextIPrincipalpublic IOpaqueCredentials getOpaqueCredentialsInstance()
ISecurityContext
getOpaqueCredentialsInstance in interface ISecurityContextIOpaqueCredentials
public void authenticate()
throws PortalSecurityException
authenticate in interface ISecurityContextPortalSecurityExceptionISecurityContext.getPrincipalInstance(),
ISecurityContext.getOpaqueCredentialsInstance()public IPrincipal getPrincipal()
ISecurityContext
getPrincipal in interface ISecurityContextpublic IOpaqueCredentials getOpaqueCredentials()
ISecurityContext
getOpaqueCredentials in interface ISecurityContextIOpaqueCredentialspublic IAdditionalDescriptor getAdditionalDescriptor()
ISecurityContext
getAdditionalDescriptor in interface ISecurityContextIAdditionalDescriptorpublic boolean isAuthenticated()
ISecurityContexttrue.
isAuthenticated in interface ISecurityContextpublic ISecurityContext getSubContext(String name)
ISecurityContextISecurityContext for the named subserviant security
context.
getSubContext in interface ISecurityContextname - The non-compound name of the subserviant security context.
public boolean doesSubContextExist(String name)
public Enumeration getSubContexts()
ISecurityContext
getSubContexts in interface ISecurityContext
public void addSubContext(String name,
ISecurityContext ctx)
throws PortalSecurityException
ISecurityContext
addSubContext in interface ISecurityContextname - 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.
PortalSecurityExceptionpublic Enumeration getSubContextNames()
ISecurityContext
getSubContextNames in interface ISecurityContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||