Package net.shibboleth.idp.authn.impl
Class X509AuthServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
net.shibboleth.idp.authn.impl.X509AuthServlet
- All Implemented Interfaces:
Servlet,ServletConfig,Serializable
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.LoggerClass logger.private static final StringParameter/cookie for bypassing prompt page.private static final StringInit parameter controlling certificate preservation.private booleanWhether to save the certificate to the Java Subject's public credentials.private static final longSerial UUID.private static final StringInit parameter identifying optionalTrustEnginebean name.private TrustEngine<? super X509Credential>Trust engine.Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ServletConfig config) protected voidservice(HttpServletRequest httpRequest, HttpServletResponse httpResponse) voidsetSaveCertificateToCredentialSet(boolean flag) Set whether to save the certificate in the Java Subject's public credentials.voidsetTrustEngine(TrustEngine<? super X509Credential> tm) Set theTrustEngineto use.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.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 optionalTrustEnginebean name.- See Also:
-
SAVECERT_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 theTrustEngineto 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
- Specified by:
initin interfaceServlet- Overrides:
initin classHttpServlet- Throws:
ServletException
-
service
protected void service(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException - Overrides:
servicein classHttpServlet- Throws:
ServletExceptionIOException
-