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:
java.io.Externalizable
,java.io.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 theCasProxyReceptor
.After the CAS principal has been set through the
setPrincipal(AttributePrincipal)
method, proxy tickets can be retrieved for various CAS services by using thegetProxyTicketFor(String)
method.- Since:
- 1.4.0
- Author:
- Jerome Leleu
- See Also:
CasClient
,CasProxyReceptor
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jasig.cas.client.authentication.AttributePrincipal
attributePrincipal
-
Constructor Summary
Constructors Constructor Description CasProxyProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProxyTicketFor(java.lang.String service)
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, 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
-
-
-
-
Method Detail
-
setPrincipal
public void setPrincipal(org.jasig.cas.client.authentication.AttributePrincipal attributePrincipal)
Store the CAS principal.- Parameters:
attributePrincipal
- the principal with attributes
-
getProxyTicketFor
public java.lang.String getProxyTicketFor(java.lang.String service)
Get a proxy ticket for a given service.- Parameters:
service
- the CAS service- Returns:
- the proxy ticket for the given service
-
-