Package net.shibboleth.idp.authn.impl
Class X509AuthServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.shibboleth.idp.authn.impl.X509AuthServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class X509AuthServlet
extends javax.servlet.http.HttpServlet
Servlet compatible with the
ExternalAuthentication
interface that extracts and validates
an X.509 client certificate for user authentication.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.private static final String
Parameter/cookie for bypassing prompt page.private static final String
Init parameter controlling certificate preservation.private boolean
Whether to save the certificate to the Java Subject's public credentials.private static final long
Serial UUID.private static final String
Init parameter identifying optionalTrustEngine
bean name.private TrustEngine<? super X509Credential>
Trust engine. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(javax.servlet.ServletConfig config) protected void
service
(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) void
setSaveCertificateToCredentialSet
(boolean flag) Set whether to save the certificate in the Java Subject's public credentials.void
setTrustEngine
(TrustEngine<? super X509Credential> tm) Set theTrustEngine
to use.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial UUID.- See Also:
-
TRUST_ENGINE_PARAM
Init parameter identifying optionalTrustEngine
bean name.- See Also:
-
SAVECERT_ENGINE_PARAM
Init parameter controlling certificate preservation.- See Also:
-
PASSTHROUGH_PARAM
Parameter/cookie for bypassing prompt page.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
trustEngine
Trust engine. -
saveCertificateToCredentialSet
private boolean saveCertificateToCredentialSetWhether to save the certificate to the Java Subject's public credentials.
-
-
Constructor Details
-
X509AuthServlet
public X509AuthServlet()Constructor.
-
-
Method Details
-
setTrustEngine
Set theTrustEngine
to use.- Parameters:
tm
- trust engine to use
-
setSaveCertificateToCredentialSet
public void setSaveCertificateToCredentialSet(boolean flag) Set whether to save the certificate in the Java Subject's public credentials.Defaults to true
- Parameters:
flag
- flag to set- Since:
- 4.1.0
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
service
protected void service(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws javax.servlet.ServletException, IOException - Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-