|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlets.swapper.IdentitySwapperSecurityContext
public class IdentitySwapperSecurityContext
Security context used exclusively for doing identity-swaps
| Constructor Summary | |
|---|---|
IdentitySwapperSecurityContext(IPrincipal principal)
|
|
| Method Summary | |
|---|---|
void |
addSubContext(String name,
ISecurityContext ctx)
Adds a named sub context to the list of subserviant subcontexts. |
void |
authenticate()
Performs the operation of authentication. |
IAdditionalDescriptor |
getAdditionalDescriptor()
Returns any additional descriptor information that might have been acquired during the process of authentication. |
int |
getAuthType()
Returns the canonical authentication type for this flavor 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 ctx)
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 |
| Constructor Detail |
|---|
public IdentitySwapperSecurityContext(IPrincipal principal)
| Method Detail |
|---|
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.
PortalSecurityException
public void authenticate()
throws PortalSecurityException
ISecurityContextgetPrincipalInstance()) and the
OpaqueCredentials object (whose reference is returned
by getOpaqueCredentialsInstance()).
authenticate in interface ISecurityContextPortalSecurityExceptionISecurityContext.getPrincipalInstance(),
ISecurityContext.getOpaqueCredentialsInstance()public IAdditionalDescriptor getAdditionalDescriptor()
ISecurityContext
getAdditionalDescriptor in interface ISecurityContextIAdditionalDescriptorpublic int getAuthType()
ISecurityContext
getAuthType in interface ISecurityContextpublic IOpaqueCredentials getOpaqueCredentials()
ISecurityContext
getOpaqueCredentials in interface ISecurityContextIOpaqueCredentialspublic IOpaqueCredentials getOpaqueCredentialsInstance()
ISecurityContext
getOpaqueCredentialsInstance in interface ISecurityContextIOpaqueCredentialspublic IPrincipal getPrincipal()
ISecurityContext
getPrincipal in interface ISecurityContextpublic IPrincipal getPrincipalInstance()
ISecurityContext
getPrincipalInstance in interface ISecurityContextIPrincipal
public ISecurityContext getSubContext(String ctx)
throws PortalSecurityException
ISecurityContextISecurityContext for the named subserviant security
context.
getSubContext in interface ISecurityContextctx - The non-compound name of the subserviant security context.
PortalSecurityExceptionpublic Enumeration getSubContextNames()
ISecurityContext
getSubContextNames in interface ISecurityContextpublic Enumeration getSubContexts()
ISecurityContext
getSubContexts in interface ISecurityContextpublic boolean isAuthenticated()
ISecurityContexttrue.
isAuthenticated in interface ISecurityContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||