Class CasProxyProfile

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

public class CasProxyProfile extends CasProfile

This class is the user profile for sites using CAS protocol with proxy capabilities.

It is returned by the CasClient coupled with the CasProxyReceptor.

After the CAS principal has been set through the setPrincipal(AttributePrincipal) method, proxy tickets can be retrieved for various CAS services by using the getProxyTicketFor(String) method.

Since:
1.4.0
Author:
Jerome Leleu
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.jasig.cas.client.authentication.AttributePrincipal
     

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a proxy ticket for a given service.
    void
    setPrincipal(org.jasig.cas.client.authentication.AttributePrincipal attributePrincipal)
    Store the CAS principal.

    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, removeLoginData, setClientName, setId, setLinkedId, setPermissions, setRemembered, setRoles, toString, writeExternal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • attributePrincipal

      protected org.jasig.cas.client.authentication.AttributePrincipal attributePrincipal
  • Constructor Details

    • CasProxyProfile

      public CasProxyProfile()
  • Method Details

    • setPrincipal

      public void setPrincipal(org.jasig.cas.client.authentication.AttributePrincipal attributePrincipal)
      Store the CAS principal.
      Parameters:
      attributePrincipal - the principal with attributes
    • getProxyTicketFor

      public String getProxyTicketFor(String service)
      Get a proxy ticket for a given service.
      Parameters:
      service - the CAS service
      Returns:
      the proxy ticket for the given service