@Deprecated public class CasToken extends Object implements RememberMeAuthenticationToken
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials()
Deprecated.
Returns the credentials submitted by the user during the authentication process that verifies
the submitted
account identity. |
Object |
getPrincipal()
Deprecated.
Returns the account identity submitted during the authentication process.
|
boolean |
isRememberMe()
Deprecated.
Returns
true if the submitting user wishes their identity (principal(s)) to be remembered
across sessions, false otherwise. |
void |
setRememberMe(boolean isRememberMe)
Deprecated.
|
void |
setUserId(String userId)
Deprecated.
|
public CasToken(String ticket)
public Object getPrincipal()
AuthenticationTokenMost application authentications are username/password based and have this
object represent a username. If this is the case for your application,
take a look at the UsernamePasswordToken, as it is probably
sufficient for your use.
Ultimately, the object returned is application specific and can represent any account identity (user id, X.509 certificate, etc).
getPrincipal in interface AuthenticationTokenUsernamePasswordTokenpublic Object getCredentials()
AuthenticationTokenaccount identity.
Most application authentications are username/password based and have this object
represent a submitted password. If this is the case for your application,
take a look at the UsernamePasswordToken, as it is probably
sufficient for your use.
Ultimately, the credentials Object returned is application specific and can represent any credential mechanism.
getCredentials in interface AuthenticationTokenpublic void setUserId(String userId)
public boolean isRememberMe()
RememberMeAuthenticationTokentrue if the submitting user wishes their identity (principal(s)) to be remembered
across sessions, false otherwise.isRememberMe in interface RememberMeAuthenticationTokentrue if the submitting user wishes their identity (principal(s)) to be remembered
across sessions, false otherwise.public void setRememberMe(boolean isRememberMe)
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.