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, org.craftercms.profile.api.Profile profile)
DefaultAuthentication(String ticket, org.craftercms.profile.api.Profile profile, boolean remembered)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
org.craftercms.profile.api.Profile
getProfile()
Returns the profile associated to the authentication.String
getTicket()
Returns the ticket that identifies the authentication.int
hashCode()
boolean
isRemembered()
Indicates if it's a remembered authentication.String
toString()
-
-
-
Method Detail
-
getTicket
public String getTicket()
Description copied from interface:Authentication
Returns the ticket that identifies the authentication.- Specified by:
getTicket
in interfaceAuthentication
-
getProfile
public org.craftercms.profile.api.Profile getProfile()
Description copied from interface:Authentication
Returns the profile associated to the authentication.- Specified by:
getProfile
in interfaceAuthentication
-
isRemembered
public boolean isRemembered()
Description copied from interface:Authentication
Indicates if it's a remembered authentication.- Specified by:
isRemembered
in interfaceAuthentication
-
-