public class JaspiAuthenticatorFactory extends DefaultAuthenticatorFactory
Constructor and Description |
---|
JaspiAuthenticatorFactory() |
Modifier and Type | Method and Description |
---|---|
protected String |
findServerName(Server server,
Subject subject)
Find a servername.
|
protected Subject |
findServiceSubject(Server server)
Find a service Subject.
|
Authenticator |
getAuthenticator(Server server,
javax.servlet.ServletContext context,
Authenticator.AuthConfiguration configuration,
IdentityService identityService,
LoginService loginService) |
String |
getServerName() |
Subject |
getServiceSubject() |
void |
setServerName(String serverName) |
void |
setServiceSubject(Subject serviceSubject) |
getLoginService, setLoginService
public Subject getServiceSubject()
public void setServiceSubject(Subject serviceSubject)
serviceSubject
- the serviceSubject to setpublic String getServerName()
public void setServerName(String serverName)
serverName
- the serverName to setpublic Authenticator getAuthenticator(Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService)
getAuthenticator
in interface Authenticator.Factory
getAuthenticator
in class DefaultAuthenticatorFactory
protected Subject findServiceSubject(Server server)
setServiceSubject(Subject)
has not been used to
set a subject, then the ContainerLifeCycle.getBeans(Class)
method is
used to look for a Subject.server
- the server to pull the Subject fromprotected String findServerName(Server server, Subject subject)
setServerName(String)
has not been called, then
use the name of the a principal in the service subject.
If not found, return "server".server
- not usedsubject
- the subject to useCopyright © 1995-2015 Webtide. All Rights Reserved.