|
||||||||||
| 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.SimpleLdapSecurityContext
org.jasig.portal.security.provider.CacheLdapSecurityContext
SimpleLdapSecurityContext chained with CacheSecurityContext instead
public class CacheLdapSecurityContext
This is an implementation of a SecurityContext that checks a user's credentials against an LDAP directory. It expects to be able to bind to the LDAP directory as the user so that it can authenticate the user. The user's credentials are cached.
| Nested Class Summary | |
|---|---|
private class |
CacheLdapSecurityContext.CacheOpaqueCredentials
Deprecated. This is a new implementation of an OpaqueCredentials class that implements the less-opaque NotSoOpaqueCredentials. |
| Nested classes/interfaces inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
|---|
ChainingSecurityContext.ChainingAdditionalDescriptor, ChainingSecurityContext.ChainingOpaqueCredentials, ChainingSecurityContext.ChainingPrincipal |
| Field Summary | |
|---|---|
private byte[] |
cachedCredentials
Deprecated. |
private int |
CACHELDAPSECURITYAUTHTYPE
Deprecated. |
| Fields inherited from class org.jasig.portal.security.provider.SimpleLdapSecurityContext |
|---|
ATTR_FIRSTNAME, ATTR_LASTNAME, ATTR_UID, LDAP_PROPERTIES_CONNECTION_NAME |
| Fields inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
|---|
isauth, myAdditionalDescriptor, myOpaqueCredentials, myOrder, myPrincipal, mySubContexts, stopWhenAuthenticated |
| Constructor Summary | |
|---|---|
CacheLdapSecurityContext()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
authenticate()
Deprecated. Authenticates the user. |
int |
getAuthType()
Deprecated. Returns the type of authentication this class provides. |
IOpaqueCredentials |
getOpaqueCredentials()
Deprecated. We need to override this method in order to return a class that implements the NotSoOpaqueCredentals interface. |
| Methods inherited from class org.jasig.portal.security.provider.SimpleLdapSecurityContext |
|---|
setProperties |
| Methods inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
|---|
addSubContext, doesSubContextExist, getAdditionalDescriptor, 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, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated |
| Field Detail |
|---|
private final int CACHELDAPSECURITYAUTHTYPE
private byte[] cachedCredentials
| Constructor Detail |
|---|
CacheLdapSecurityContext()
| Method Detail |
|---|
public int getAuthType()
getAuthType in interface ISecurityContextgetAuthType in class SimpleLdapSecurityContext
public void authenticate()
throws PortalSecurityException
authenticate in interface ISecurityContextauthenticate in class SimpleLdapSecurityContextPortalSecurityExceptionISecurityContext.getPrincipalInstance(),
ISecurityContext.getOpaqueCredentialsInstance()public IOpaqueCredentials getOpaqueCredentials()
getOpaqueCredentials in interface ISecurityContextgetOpaqueCredentials in class ChainingSecurityContextIOpaqueCredentials
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||