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
,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
-
Fields inherited from class org.pac4j.core.profile.BasicUserProfile
logger, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description CasProxyProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProxyTicketFor(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
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, build, build, containsAttribute, containsAuthenicationAttribute, 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
-
Methods inherited from interface org.pac4j.core.profile.UserProfile
asPrincipal
-
-