Class JaspiAuthenticatorFactory
java.lang.Object
org.eclipse.jetty.security.DefaultAuthenticatorFactory
org.eclipse.jetty.security.jaspi.JaspiAuthenticatorFactory
- All Implemented Interfaces:
Authenticator.Factory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringfindServerName(Server server) Find a servername.protected StringfindServerName(Server server, Subject subject) Deprecated.protected SubjectfindServiceSubject(Server server) Find a service Subject.getAuthenticator(Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService) voidsetServerName(String serverName) voidsetServiceSubject(Subject serviceSubject) Methods inherited from class DefaultAuthenticatorFactory
getLoginService, setLoginService
-
Field Details
-
LOG
-
MESSAGE_LAYER
-
_serviceSubject
-
_serverName
-
-
Constructor Details
-
JaspiAuthenticatorFactory
public JaspiAuthenticatorFactory()
-
-
Method Details
-
getServiceSubject
- Returns:
- the serviceSubject
-
setServiceSubject
- Parameters:
serviceSubject- the serviceSubject to set
-
getServerName
- Returns:
- the serverName
-
setServerName
- Parameters:
serverName- the serverName to set
-
getAuthenticator
public Authenticator getAuthenticator(Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService) - Specified by:
getAuthenticatorin interfaceAuthenticator.Factory- Overrides:
getAuthenticatorin classDefaultAuthenticatorFactory
-
findServiceSubject
Find a service Subject. IfsetServiceSubject(Subject)has not been used to set a subject, then theContainerLifeCycle.getBeans(Class)method is used to look for a Subject.- Parameters:
server- the server to pull the Subject from- Returns:
- the subject
-
findServerName
Find a servername. IfsetServerName(String)has not been called, then use the name of the a principal in the service subject. If not found, return "server".- Parameters:
server- the server to find the name of- Returns:
- the server name from the service Subject (or default value if not found in subject or principals)
-
findServerName
Deprecated.Find a servername. IfsetServerName(String)has not been called, then use the name of the a principal in the service subject. If not found, return "server".- Parameters:
server- the server to usesubject- not used- Returns:
- the server name from the subject of the server (or default value if not found in subject or principals)
-