Package org.pac4j.cas.profile
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
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
Modifier and TypeFieldDescriptionprotected org.apereo.cas.client.authentication.AttributePrincipal
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProxyTicketFor
(String service) Get a proxy ticket for a given service.void
setPrincipal
(org.apereo.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, toString
Methods inherited from class org.pac4j.core.profile.BasicUserProfile
addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addRole, addRoles, asPrincipal, build, build, canEqual, containsAttribute, containsAuthenticationAttribute, equals, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getRoles, getTypedId, hashCode, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, removeLoginData, setClientName, setId, setLinkedId, setRemembered, setRoles, writeExternal
-
Field Details
-
attributePrincipal
protected org.apereo.cas.client.authentication.AttributePrincipal attributePrincipal
-
-
Constructor Details
-
CasProxyProfile
public CasProxyProfile()
-
-
Method Details
-
setPrincipal
public void setPrincipal(org.apereo.cas.client.authentication.AttributePrincipal attributePrincipal) Store the CAS principal.- Parameters:
attributePrincipal
- the principal with attributes
-
getProxyTicketFor
Get a proxy ticket for a given service.- Parameters:
service
- the CAS service- Returns:
- the proxy ticket for the given service
-