Class GroovyPrincipalFactory
java.lang.Object
org.apereo.cas.authentication.principal.DefaultPrincipalFactory
org.apereo.cas.authentication.principal.GroovyPrincipalFactory
- All Implemented Interfaces:
Serializable,org.apereo.cas.authentication.principal.PrincipalFactory
Factory to create
SimplePrincipal objects.- Since:
- 4.1.0
- See Also:
-
Field Summary
Fields inherited from interface org.apereo.cas.authentication.principal.PrincipalFactory
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.principal.PrincipalFactory
createPrincipal, withoutAttributes
-
Constructor Details
-
GroovyPrincipalFactory
public GroovyPrincipalFactory(org.springframework.core.io.Resource groovyResource)
-
-
Method Details
-
createPrincipal
public org.apereo.cas.authentication.principal.Principal createPrincipal(String id, Map<String, List<Object>> attributes) throws Throwable- Specified by:
createPrincipalin interfaceorg.apereo.cas.authentication.principal.PrincipalFactory- Overrides:
createPrincipalin classDefaultPrincipalFactory- Throws:
Throwable
-
equals
- Overrides:
equalsin classDefaultPrincipalFactory
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultPrincipalFactory
-