|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.authn.AuthenticationService
An Interceptor
that authenticates users.
Nested Class Summary | |
class |
AuthenticationService.TrustedPrincipalWrapper
Created this wrapper to pass to ctx.setPrincipal() which is public for added security. |
Field Summary | |
java.util.Map |
authenticators
authenticators |
Constructor Summary | |
AuthenticationService()
Creates an authentication service interceptor. |
Method Summary | |
void |
destroy()
Deinitializes this interceptor. |
java.util.Collection |
getAuthenticators(java.lang.String type)
Gets the authenticators with a specific type. |
void |
init(InterceptorContext ctx)
Intializes this interceptor. |
void |
process(NextInterceptor nextProcessor,
Invocation call)
Filters a particular invocation. |
void |
register(Authenticator authenticator)
Registers an AuthenticationService with the AuthenticationService. |
void |
unregister(Authenticator authenticator)
Unregisters an AuthenticationService with the AuthenticationService. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Map authenticators
Constructor Detail |
public AuthenticationService()
Method Detail |
public void init(InterceptorContext ctx) throws javax.naming.NamingException
Interceptor
init
in interface Interceptor
ctx
- the configuration properties for this interceptor
javax.naming.NamingException
- if failed to initialize this interceptorpublic void destroy()
Interceptor
destroy
in interface Interceptor
public void register(Authenticator authenticator)
authenticator
- AuthenticationService component to register with this
AuthenticatorService.public void unregister(Authenticator authenticator)
authenticator
- AuthenticationService component to unregister with this
AuthenticationService.public java.util.Collection getAuthenticators(java.lang.String type)
type
- the authentication type
public void process(NextInterceptor nextProcessor, Invocation call) throws javax.naming.NamingException
Interceptor
nextInterceptor
by calling NextInterceptor.process(
org.apache.ldap.server.invocation.Invocation)
process
in interface Interceptor
nextProcessor
- the next interceptor in the interceptor chaincall
- the invocation to process
javax.naming.NamingException
- on failures while handling the invocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |