|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.provider.ChainingSecurityContext
org.jasig.portal.security.provider.TrustSecurityContext
class TrustSecurityContext
This is an implementation of a SecurityContext that merely checks to see if the user exists in the UP_USERS database table but otherwise presumes to be pre-authenticated by the context from which it is called. The typical system where this might be used is a portal whose main page is protected by HTTP authentication (BASIC or otherwise).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
|---|
ChainingSecurityContext.ChainingAdditionalDescriptor, ChainingSecurityContext.ChainingOpaqueCredentials, ChainingSecurityContext.ChainingPrincipal |
| Field Summary | |
|---|---|
private static org.apache.commons.logging.Log |
log
|
private int |
TRUSTSECURITYAUTHTYPE
|
| Fields inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
|---|
isauth, myAdditionalDescriptor, myOpaqueCredentials, myOrder, myPrincipal, mySubContexts, stopWhenAuthenticated |
| Constructor Summary | |
|---|---|
TrustSecurityContext()
|
|
| Method Summary | |
|---|---|
void |
authenticate()
We walk the chain of subcontext assigning principals and opaquecredentials from the parent. |
int |
getAuthType()
Returns the canonical authentication type for this flavor of authentication. |
| Methods inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
|---|
addSubContext, doesSubContextExist, getAdditionalDescriptor, getOpaqueCredentials, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated |
| 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 |
|---|
addSubContext, getAdditionalDescriptor, getOpaqueCredentials, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private final int TRUSTSECURITYAUTHTYPE
| Constructor Detail |
|---|
TrustSecurityContext()
| Method Detail |
|---|
public int getAuthType()
ISecurityContext
getAuthType in interface ISecurityContext
public void authenticate()
throws PortalSecurityException
ChainingSecurityContext
authenticate in interface ISecurityContextauthenticate in class ChainingSecurityContextPortalSecurityExceptionISecurityContext.getPrincipalInstance(),
ISecurityContext.getOpaqueCredentialsInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||