|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISecurityContext
This is the main interface for the JASIG portal effort's security mechanism. We endeavor here to provide considerable encapsulation of the data we are trying to present.
Method Summary | |
---|---|
void |
addSubContext(java.lang.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(java.lang.String ctx)
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. |
Method Detail |
---|
int getAuthType()
IPrincipal getPrincipalInstance()
IPrincipal
IOpaqueCredentials getOpaqueCredentialsInstance()
IOpaqueCredentials
void authenticate() throws PortalSecurityException
getPrincipalInstance()
) and the
OpaqueCredentials object (whose reference is returned
by getOpaqueCredentialsInstance()
).
PortalSecurityException
getPrincipalInstance()
,
getOpaqueCredentialsInstance()
IPrincipal getPrincipal()
IOpaqueCredentials getOpaqueCredentials()
IOpaqueCredentials
IAdditionalDescriptor getAdditionalDescriptor()
IAdditionalDescriptor
boolean isAuthenticated()
true
.
ISecurityContext getSubContext(java.lang.String ctx) throws PortalSecurityException
ISecurityContext
for the named subserviant security
context.
ctx
- The non-compound name of the subserviant security context.
PortalSecurityException
java.util.Enumeration getSubContexts()
java.util.Enumeration getSubContextNames()
void addSubContext(java.lang.String name, ISecurityContext ctx) throws PortalSecurityException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |