Package com.browserup.bup.mitm
Class ExistingCertificateSource
- java.lang.Object
-
- com.browserup.bup.mitm.ExistingCertificateSource
-
- All Implemented Interfaces:
CertificateAndKeySource
public class ExistingCertificateSource extends java.lang.Object implements CertificateAndKeySource
A simple adapter that produces aCertificateAndKeyfrom existingX509CertificateandPrivateKeyjava objects.
-
-
Constructor Summary
Constructors Constructor Description ExistingCertificateSource(java.security.cert.X509Certificate rootCertificate, java.security.PrivateKey privateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateAndKeyload()Loads a certificate and its corresponding private key.
-
-
-
Method Detail
-
load
public CertificateAndKey load()
Description copied from interface:CertificateAndKeySourceLoads a certificate and its corresponding private key. Every time this method is called, it should return the same certificate and private key (although it may be a differentCertificateAndKeyinstance).- Specified by:
loadin interfaceCertificateAndKeySource- Returns:
- certificate and its corresponding private key
-
-