Class CasRestProfile

java.lang.Object
org.pac4j.core.profile.BasicUserProfile
org.pac4j.core.profile.CommonProfile
org.pac4j.cas.profile.CasRestProfile
All Implemented Interfaces:
Externalizable, Serializable, org.pac4j.core.profile.UserProfile

public final class CasRestProfile extends org.pac4j.core.profile.CommonProfile
This is CasRestProfile that represents the CAS TGT when it's obtained via the rest api.
Since:
1.8.0
Author:
Misagh Moayyed
See Also:
  • Field Summary

    Fields inherited from class org.pac4j.core.profile.BasicUserProfile

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    CasRestProfile(String ticketGrantingTicketId, String userName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    int
     
    void
     

    Methods inherited from class org.pac4j.core.profile.CommonProfile

    getAttributeAsDate, getAttributeAsString, getAttributeAsType, getDisplayName, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, getPictureUrl, getProfileUrl, getUsername, isExpired

    Methods inherited from class org.pac4j.core.profile.BasicUserProfile

    addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addPermission, addPermissions, addRole, addRoles, asPrincipal, build, build, containsAttribute, containsAuthenicationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setPermissions, setRemembered, setRoles, toString, writeExternal

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CasRestProfile

      public CasRestProfile()
    • CasRestProfile

      public CasRestProfile(String ticketGrantingTicketId, String userName)
  • Method Details

    • getTicketGrantingTicketId

      public String getTicketGrantingTicketId()
    • removeLoginData

      public void removeLoginData()
      Overrides:
      removeLoginData in class org.pac4j.core.profile.BasicUserProfile
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object