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.HttpServletServlet compatible with theExternalAuthenticationinterface that extracts and validates an X.509 client certificate for user authentication.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private static StringPASSTHROUGH_PARAMParameter/cookie for bypassing prompt page.private static StringSAVECERT_ENGINE_PARAMInit parameter controlling certificate preservation.private booleansaveCertificateToCredentialSetWhether to save the certificate to the Java Subject's public credentials.private static longserialVersionUIDSerial UUID.private static StringTRUST_ENGINE_PARAMInit parameter identifying optionalTrustEnginebean name.private TrustEngine<? super X509Credential>trustEngineTrust engine.
-
Constructor Summary
Constructors Constructor Description X509AuthServlet()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(javax.servlet.ServletConfig config)protected voidservice(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.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 javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial UUID.- See Also:
- Constant Field Values
-
TRUST_ENGINE_PARAM
@Nonnull @NotEmpty private static final String TRUST_ENGINE_PARAM
Init parameter identifying optionalTrustEnginebean name.- See Also:
- Constant Field Values
-
SAVECERT_ENGINE_PARAM
@Nonnull @NotEmpty private static final String SAVECERT_ENGINE_PARAM
Init parameter controlling certificate preservation.- See Also:
- Constant Field Values
-
PASSTHROUGH_PARAM
@Nonnull @NotEmpty private static final String PASSTHROUGH_PARAM
Parameter/cookie for bypassing prompt page.- See Also:
- Constant Field Values
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
trustEngine
@Nullable private TrustEngine<? super X509Credential> trustEngine
Trust engine.
-
saveCertificateToCredentialSet
private boolean saveCertificateToCredentialSet
Whether to save the certificate to the Java Subject's public credentials.
-
-
Method Detail
-
setTrustEngine
public void setTrustEngine(@Nullable TrustEngine<? super X509Credential> tm)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
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin 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:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
-