Class SecurityAuthenticatorSupport
java.lang.Object
org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
- All Implemented Interfaces:
SecurityAuthenticator
- Direct Known Subclasses:
JAASSecurityAuthenticator
A base class for
SecurityAuthenticator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCallbackHandlerthat provides the username and password. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the realm.getUserRoles(Subject subject) Gets the user roles from the givenSubjectprotected booleanisRoleClass(Principal principal) Is the given principal a role class?voidSets the name of the realm to use.voidsetRoleClassNames(String roleClassNames) Sets the role class names (separated by comma)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.component.netty.http.SecurityAuthenticator
login, logout
-
Constructor Details
-
SecurityAuthenticatorSupport
protected SecurityAuthenticatorSupport()
-
-
Method Details
-
setName
Description copied from interface:SecurityAuthenticatorSets the name of the realm to use.- Specified by:
setNamein interfaceSecurityAuthenticator
-
getName
Description copied from interface:SecurityAuthenticatorGets the name of the realm.- Specified by:
getNamein interfaceSecurityAuthenticator
-
setRoleClassNames
Description copied from interface:SecurityAuthenticatorSets the role class names (separated by comma) By default if no explicit role class names has been configured, then this implementation will assume theSubjectPrincipals is a role if the classname contains the word role (lower cased).- Specified by:
setRoleClassNamesin interfaceSecurityAuthenticator- Parameters:
roleClassNames- a list of FQN class names for rolePrincipalimplementations.
-
isRoleClass
Is the given principal a role class?- Parameters:
principal- the principal- Returns:
- true if role class, false if not
-
getUserRoles
Description copied from interface:SecurityAuthenticatorGets the user roles from the givenSubject- Specified by:
getUserRolesin interfaceSecurityAuthenticator- Parameters:
subject- the subject- Returns:
- null if no roles, otherwise a String with roles separated by comma.
-