|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shiro.cas.CasToken
public class CasToken
This class represents a token for a CAS authentication (service ticket + user id + remember me).
Constructor Summary | |
---|---|
CasToken(String ticket)
|
Method Summary | |
---|---|
Object |
getCredentials()
Returns the credentials submitted by the user during the authentication process that verifies the submitted account identity . |
Object |
getPrincipal()
Returns the account identity submitted during the authentication process. |
boolean |
isRememberMe()
Returns true if the submitting user wishes their identity (principal(s)) to be remembered
across sessions, false otherwise. |
void |
setRememberMe(boolean isRememberMe)
|
void |
setUserId(String userId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CasToken(String ticket)
Method Detail |
---|
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 void setUserId(String userId)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |