Interface PrincipalFactory
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines operations to create principals.
- Since:
- 4.1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault PrincipalCreate principal.Create principal along with its attributes.default PrincipalwithoutAttributes(Principal principal) Principal Without attributes.
-
Field Details
-
BEAN_NAME
Implementation bean name.- See Also:
-
-
Method Details
-
createPrincipal
Create principal.- Parameters:
id- the id- Returns:
- the principal
- Throws:
Throwable- the throwable
-
createPrincipal
Create principal along with its attributes.- Parameters:
id- the idattributes- the attributes- Returns:
- the principal
- Throws:
Throwable- the throwable
-
withoutAttributes
Principal Without attributes.- Parameters:
principal- the principal- Returns:
- the principal
- Throws:
Throwable- the throwable
-