Class ShibbolethCompatiblePersistentIdGenerator
java.lang.Object
org.apereo.cas.authentication.principal.ShibbolethCompatiblePersistentIdGenerator
- All Implemented Interfaces:
Serializable
,org.apereo.cas.authentication.principal.PersistentIdGenerator
public class ShibbolethCompatiblePersistentIdGenerator
extends Object
implements org.apereo.cas.authentication.principal.PersistentIdGenerator
Generates PersistentIds based on the Shibboleth algorithm.
The generated ids are based on a principal attribute is specified, or
the authenticated principal id.
- Since:
- 3.1
- See Also:
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionDetermine principal id from attributes.boolean
getSalt()
int
hashCode()
void
setAttribute
(String attribute) void
toString()
Methods inherited from interface org.apereo.cas.authentication.principal.PersistentIdGenerator
generate, generate, generate
-
Constructor Details
-
ShibbolethCompatiblePersistentIdGenerator
-
ShibbolethCompatiblePersistentIdGenerator
public ShibbolethCompatiblePersistentIdGenerator()
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceorg.apereo.cas.authentication.principal.PersistentIdGenerator
-
generate
- Specified by:
generate
in interfaceorg.apereo.cas.authentication.principal.PersistentIdGenerator
-
determinePrincipalIdFromAttributes
public String determinePrincipalIdFromAttributes(String defaultId, Map<String, List<Object>> attributes) Determine principal id from attributes.- Parameters:
defaultId
- the default idattributes
- the attributes- Returns:
- the string
-
toString
-
getSalt
-
getAttribute
-
setSalt
-
setAttribute
-
equals
-
hashCode
public int hashCode()
-