Class DefaultAuthentication
- java.lang.Object
-
- org.craftercms.security.authentication.impl.DefaultAuthentication
-
- All Implemented Interfaces:
Authentication
public class DefaultAuthentication extends Object implements Authentication
Default implementation ofAuthentication.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthentication(String ticket, Profile profile)DefaultAuthentication(String ticket, Profile profile, boolean remembered)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ProfilegetProfile()Returns the profile associated to the authentication.StringgetTicket()Returns the ticket that identifies the authentication.inthashCode()booleanisRemembered()Indicates if it's a remembered authentication.StringtoString()
-
-
-
Method Detail
-
getTicket
public String getTicket()
Description copied from interface:AuthenticationReturns the ticket that identifies the authentication.- Specified by:
getTicketin interfaceAuthentication
-
getProfile
public Profile getProfile()
Description copied from interface:AuthenticationReturns the profile associated to the authentication.- Specified by:
getProfilein interfaceAuthentication
-
isRemembered
public boolean isRemembered()
Description copied from interface:AuthenticationIndicates if it's a remembered authentication.- Specified by:
isRememberedin interfaceAuthentication
-
-