|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.netty.http.SecurityAuthenticatorSupport
public abstract class SecurityAuthenticatorSupport
A base class for SecurityAuthenticator
.
Nested Class Summary | |
---|---|
static class |
SecurityAuthenticatorSupport.HttpPrincipalCallbackHandler
CallbackHandler that provides the username and password. |
Constructor Summary | |
---|---|
SecurityAuthenticatorSupport()
|
Method Summary | |
---|---|
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)
Sets the role class names (separated by comma) By default if no explicit role class names has been configured, then this implementation will assume the Subject Principal s is a role if the classname
contains the word role (lower cased). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.component.netty.http.SecurityAuthenticator |
---|
login, logout |
Constructor Detail |
---|
public SecurityAuthenticatorSupport()
Method Detail |
---|
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 principal
public String getUserRoles(Subject subject)
SecurityAuthenticator
Subject
getUserRoles
in interface SecurityAuthenticator
subject
- the subject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |