@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 Object getPrincipal()
AuthenticationToken
Most 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 AuthenticationToken
UsernamePasswordToken
public Object getCredentials()
AuthenticationToken
account 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 AuthenticationToken
public boolean isRememberMe()
RememberMeAuthenticationToken
true
if the submitting user wishes their identity (principal(s)) to be remembered
across sessions, false
otherwise.isRememberMe
in interface RememberMeAuthenticationToken
true
if the submitting user wishes their identity (principal(s)) to be remembered
across sessions, false
otherwise.public void setRememberMe(boolean isRememberMe)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.