|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.services.Authentication
public class Authentication
Attempts to authenticate a user and retrieve attributes associated with the user.
| Field Summary | |
|---|---|
private static java.lang.String |
BASE_CONTEXT_NAME
|
protected ISecurityContext |
ic
|
private static org.apache.commons.logging.Log |
log
|
protected IPerson |
m_Person
|
| Constructor Summary | |
|---|---|
Authentication()
|
|
| Method Summary | |
|---|---|
void |
authenticate(java.util.HashMap principals,
java.util.HashMap credentials,
IPerson person)
Attempts to authenticate a given IPerson based on a set of principals and credentials |
private void |
configureSecurityContextChain(java.util.HashMap principals,
java.util.HashMap credentials,
IPerson person,
ISecurityContext securityContext,
java.lang.String baseContextName)
Recureses through the ISecurityContext chain, setting the credentials
for each. |
IPerson |
getPerson()
Returns an IPerson object that can be used to hold site-specific attributes about the logged on user. |
ISecurityContext |
getSecurityContext()
Returns an ISecurityContext object that can be used later. |
void |
setContextParameters(java.util.HashMap principals,
java.util.HashMap credentials,
java.lang.String ctxName,
ISecurityContext securityContext,
IPerson person)
Get the principal and credential for a specific context and store them in the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private static final java.lang.String BASE_CONTEXT_NAME
protected IPerson m_Person
protected ISecurityContext ic
| Constructor Detail |
|---|
public Authentication()
| Method Detail |
|---|
public void authenticate(java.util.HashMap principals,
java.util.HashMap credentials,
IPerson person)
throws PortalSecurityException
principals - credentials - person -
PortalSecurityExceptionpublic IPerson getPerson()
org.jasig.portal.security.IPerson interface.public ISecurityContext getSecurityContext()
org.jasig.portal.security.ISecurityContext interface.
public void setContextParameters(java.util.HashMap principals,
java.util.HashMap credentials,
java.lang.String ctxName,
ISecurityContext securityContext,
IPerson person)
principals - credentials - ctxName - securityContext - person -
private void configureSecurityContextChain(java.util.HashMap principals,
java.util.HashMap credentials,
IPerson person,
ISecurityContext securityContext,
java.lang.String baseContextName)
throws PortalSecurityException
ISecurityContext chain, setting the credentials
for each.
TODO This functionality should be moved into the ChainingSecurityContext.
principals - credentials - person - securityContext - baseContextName -
PortalSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||