public class AttributePrincipalImpl extends SimplePrincipal implements AttributePrincipal
| Constructor and Description |
|---|
AttributePrincipalImpl(String name)
Constructs a new principal with an empty map of attributes.
|
AttributePrincipalImpl(String name,
Map<String,Object> attributes)
Constructs a new principal with the supplied name and attributes.
|
AttributePrincipalImpl(String name,
Map<String,Object> attributes,
String proxyGrantingTicket,
ProxyRetriever proxyRetriever)
Constructs a new principal with the supplied name, attributes, and proxying capabilities.
|
AttributePrincipalImpl(String name,
String proxyGrantingTicket,
ProxyRetriever proxyRetriever)
Constructs a new principal with the supplied name and the proxying capabilities.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes()
The Map of key/value pairs associated with this principal.
|
String |
getProxyTicketFor(String service)
Retrieves a CAS proxy ticket for this specific principal.
|
equals, getName, hashCode, toStringpublic AttributePrincipalImpl(String name)
name - the unique identifier for the principal.public AttributePrincipalImpl(String name, Map<String,Object> attributes)
name - the unique identifier for the principal.attributes - the key/value pairs for this principal.public AttributePrincipalImpl(String name, String proxyGrantingTicket, ProxyRetriever proxyRetriever)
name - the unique identifier for the principal.proxyGrantingTicket - the ticket associated with this principal.proxyRetriever - the ProxyRetriever implementation to call back to the CAS server.public AttributePrincipalImpl(String name, Map<String,Object> attributes, String proxyGrantingTicket, ProxyRetriever proxyRetriever)
name - the unique identifier for the principal.attributes - the key/value pairs for this principal.proxyGrantingTicket - the ticket associated with this principal.proxyRetriever - the ProxyRetriever implementation to call back to the CAS server.public Map<String,Object> getAttributes()
AttributePrincipalgetAttributes in interface AttributePrincipalpublic String getProxyTicketFor(String service)
AttributePrincipalgetProxyTicketFor in interface AttributePrincipalservice - the service we wish to proxy this user to.Copyright © 2006-2014 Jasig. All Rights Reserved.