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, wait
login, logout
public void setName(String name)
SecurityAuthenticator
setName
in interface SecurityAuthenticator
public String getName()
SecurityAuthenticator
getName
in interface SecurityAuthenticator
public void setRoleClassNames(String roleClassNames)
SecurityAuthenticator
Subject
Principal
s is a role if the classname
contains the word role (lower cased).setRoleClassNames
in interface SecurityAuthenticator
roleClassNames
- a list of FQN class names for role Principal
implementations.protected boolean isRoleClass(Principal principal)
principal
- the principalpublic String getUserRoles(Subject subject)
SecurityAuthenticator
Subject
getUserRoles
in interface SecurityAuthenticator
subject
- the subjectApache Camel