Package org.apache.shiro.cas
Class CasToken
- java.lang.Object
-
- org.apache.shiro.cas.CasToken
-
- All Implemented Interfaces:
Serializable
,AuthenticationToken
,RememberMeAuthenticationToken
@Deprecated public class CasToken extends Object implements RememberMeAuthenticationToken
Deprecated.replaced with Shiro integration in buji-pac4j.This class represents a token for a CAS authentication (service ticket + user id + remember me).- Since:
- 1.2
- See Also:
- buji-pac4j, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
getCredentials()
Deprecated.Returns the credentials submitted by the user during the authentication process that verifies the submittedaccount identity
.Object
getPrincipal()
Deprecated.Returns the account identity submitted during the authentication process.boolean
isRememberMe()
Deprecated.Returnstrue
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.
-
-
-
Method Detail
-
getPrincipal
public Object getPrincipal()
Deprecated.Description copied from interface:AuthenticationToken
Returns the account identity submitted during the authentication process.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).
- Specified by:
getPrincipal
in interfaceAuthenticationToken
- Returns:
- the account identity submitted during the authentication process.
- See Also:
UsernamePasswordToken
-
getCredentials
public Object getCredentials()
Deprecated.Description copied from interface:AuthenticationToken
Returns the credentials submitted by the user during the authentication process that verifies the submittedaccount 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.
- Specified by:
getCredentials
in interfaceAuthenticationToken
- Returns:
- the credential submitted by the user during the authentication process.
-
isRememberMe
public boolean isRememberMe()
Deprecated.Description copied from interface:RememberMeAuthenticationToken
Returnstrue
if the submitting user wishes their identity (principal(s)) to be remembered across sessions,false
otherwise.- Specified by:
isRememberMe
in interfaceRememberMeAuthenticationToken
- Returns:
true
if the submitting user wishes their identity (principal(s)) to be remembered across sessions,false
otherwise.
-
setRememberMe
public void setRememberMe(boolean isRememberMe)
Deprecated.
-
-