|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.security.membership.service.SuccessfulAuthenticationToken
public final class SuccessfulAuthenticationToken
SuccessfulAuthenticationToken.
Marker indicating successful authentication attempt. Membership SPI
domain implementations should wrap the Serializable
payload
in an instance of this class to signify to the Membgership service that
the domian successfully authenticated the given payload token.
As well as providing a holder for the Serializable
payload,
which may have been augmented or replaced by the authenticating membership
domain, this class provides a holder for the user name of the authenticated
user that may be used in the MetaMatrix system for such things as session
tracking and authorization policies.
This wrapper class will not be exposed outside of the Membership framework.
Constructor Summary | |
---|---|
SuccessfulAuthenticationToken(java.io.Serializable payload,
java.lang.String username)
SuccessfulAuthenticationToken |
Method Summary | |
---|---|
java.lang.String |
getDomainName()
|
java.io.Serializable |
getPayload()
Get the payload token that has been successfully authenticated by a membership domain. |
java.lang.String |
getUserName()
Get the exact username of the authenticated user as it is known to the authenticating membership domain. |
boolean |
isAuthenticated()
The attempt to authenticate the given payload was successful. |
void |
setDomainName(java.lang.String domainName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuccessfulAuthenticationToken(java.io.Serializable payload, java.lang.String username)
Indicate that successful user authentication has occurred.
MetaMatrix must know the user name of every user connected to the system. In particular, when MetaMatrix authorization policies (entitlements) are created, the users and groups that are assigned to these policies come from the membership domain.
payload
- The successfully authenticated token. May be null
.username
- The username of the authenticated user
exactly as it is known by the authenticating membership domain. May not
be null
.Method Detail |
---|
public java.io.Serializable getPayload()
getPayload
in interface AuthenticationToken
public java.lang.String getUserName()
Will be null
if the user was not
authenticated.
getUserName
in interface AuthenticationToken
public boolean isAuthenticated()
isAuthenticated
in interface AuthenticationToken
true
- always.public java.lang.String getDomainName()
public void setDomainName(java.lang.String domainName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |