Package no.digipost.security
Class Https
- java.lang.Object
-
- no.digipost.security.Https
-
public class Https extends Object
Utilities for working with certificates in secure (https) requests. The class requires the Servlet API, i.e:<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency>
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_CLIENT_CERTIFICATE_ATTRIBUTEThe attribute key for retrieving the clientX509Certificateset by a servlet container for secure (https) requests.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static X509CertificateextractClientCertificate(javax.servlet.ServletRequest request)
-
-
-
Field Detail
-
REQUEST_CLIENT_CERTIFICATE_ATTRIBUTE
public static final String REQUEST_CLIENT_CERTIFICATE_ATTRIBUTE
The attribute key for retrieving the clientX509Certificateset by a servlet container for secure (https) requests.- See Also:
ServletRequest.getAttribute(String), Constant Field Values
-
-
Method Detail
-
extractClientCertificate
public static X509Certificate extractClientCertificate(javax.servlet.ServletRequest request)
-
-