public abstract class SecurityAuthenticatorSupport extends Object implements SecurityAuthenticator
SecurityAuthenticator.| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityAuthenticatorSupport.HttpPrincipalCallbackHandler
CallbackHandler that provides the username and password. |
| Constructor and Description |
|---|
SecurityAuthenticatorSupport() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the realm.
|
String |
getUserRoles(Subject subject)
Gets the user roles from the given
Subject |
protected boolean |
isRoleClass(Principal principal)
Is the given principal a role class?
|
void |
setName(String name)
Sets the name of the realm to use.
|
void |
setRoleClassNames(String roleClassNames)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogin, logoutpublic void setName(String name)
SecurityAuthenticatorsetName in interface SecurityAuthenticatorpublic String getName()
SecurityAuthenticatorgetName in interface SecurityAuthenticatorpublic void setRoleClassNames(String roleClassNames)
SecurityAuthenticatorSubject Principals is a role if the classname
contains the word role (lower cased).setRoleClassNames in interface SecurityAuthenticatorroleClassNames - a list of FQN class names for role Principal implementations.protected boolean isRoleClass(Principal principal)
principal - the principalpublic String getUserRoles(Subject subject)
SecurityAuthenticatorSubjectgetUserRoles in interface SecurityAuthenticatorsubject - the subjectApache Camel