org.bouncycastle.tls.CertificateEntry Maven / Gradle / Ivy
package org.bouncycastle.tls;
import org.bouncycastle.tls.crypto.TlsCertificate;
import java.util.Map;
public class CertificateEntry
{
protected final TlsCertificate certificate;
protected final Map extensions;
public CertificateEntry(TlsCertificate certificate, Map extensions)
{
if (null == certificate)
{
throw new NullPointerException("'certificate' cannot be null");
}
this.certificate = certificate;
this.extensions = extensions;
}
public TlsCertificate getCertificate()
{
return certificate;
}
public Map getExtensions()
{
return extensions;
}
}