Package org.eclipse.jetty.security.jaspi
Class JaspiAuthenticatorFactory
- java.lang.Object
-
- org.eclipse.jetty.security.DefaultAuthenticatorFactory
-
- org.eclipse.jetty.security.jaspi.JaspiAuthenticatorFactory
-
- All Implemented Interfaces:
org.eclipse.jetty.security.Authenticator.Factory
public class JaspiAuthenticatorFactory extends org.eclipse.jetty.security.DefaultAuthenticatorFactory
-
-
Constructor Summary
Constructors Constructor Description JaspiAuthenticatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
findServerName(org.eclipse.jetty.server.Server server)
Find a servername.protected javax.security.auth.Subject
findServiceSubject(org.eclipse.jetty.server.Server server)
Find a service Subject.org.eclipse.jetty.security.Authenticator
getAuthenticator(org.eclipse.jetty.server.Server server, jakarta.servlet.ServletContext context, org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration, org.eclipse.jetty.security.IdentityService identityService, org.eclipse.jetty.security.LoginService loginService)
java.lang.String
getServerName()
javax.security.auth.Subject
getServiceSubject()
void
setServerName(java.lang.String serverName)
void
setServiceSubject(javax.security.auth.Subject serviceSubject)
-
-
-
Method Detail
-
getServiceSubject
public javax.security.auth.Subject getServiceSubject()
- Returns:
- the serviceSubject
-
setServiceSubject
public void setServiceSubject(javax.security.auth.Subject serviceSubject)
- Parameters:
serviceSubject
- the serviceSubject to set
-
getServerName
public java.lang.String getServerName()
- Returns:
- the serverName
-
setServerName
public void setServerName(java.lang.String serverName)
- Parameters:
serverName
- the serverName to set
-
getAuthenticator
public org.eclipse.jetty.security.Authenticator getAuthenticator(org.eclipse.jetty.server.Server server, jakarta.servlet.ServletContext context, org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration, org.eclipse.jetty.security.IdentityService identityService, org.eclipse.jetty.security.LoginService loginService)
- Specified by:
getAuthenticator
in interfaceorg.eclipse.jetty.security.Authenticator.Factory
- Overrides:
getAuthenticator
in classorg.eclipse.jetty.security.DefaultAuthenticatorFactory
-
findServiceSubject
protected javax.security.auth.Subject findServiceSubject(org.eclipse.jetty.server.Server server)
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
protected java.lang.String findServerName(org.eclipse.jetty.server.Server server)
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)
-
-