Package com.netscape.cmscore.cert
Class CertificatePair
- java.lang.Object
-
- com.netscape.cmscore.cert.CertificatePair
-
- All Implemented Interfaces:
org.mozilla.jss.asn1.ASN1Value
public class CertificatePair extends java.lang.Object implements org.mozilla.jss.asn1.ASN1Value
This class implements CertificatePair used for Cross Certification- Version:
- $Revision$, $Date$
- Author:
- cfu
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description CertificatePair(byte[] cert1, byte[] cert2)
construct a CertificatePair.CertificatePair(java.security.cert.X509Certificate cert1, java.security.cert.X509Certificate cert2)
construct a CertificatePair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
byteArraysAreEqual(byte[] a, byte[] b)
compares contents two byte arrays returning true if exactly same.void
encode(java.io.OutputStream os)
void
encode(org.mozilla.jss.asn1.Tag implicitTag, java.io.OutputStream os)
org.mozilla.jss.asn1.Tag
getTag()
-
-
-
Constructor Detail
-
CertificatePair
public CertificatePair(java.security.cert.X509Certificate cert1, java.security.cert.X509Certificate cert2) throws EBaseException
construct a CertificatePair. It doesn't matter which is forward and which is reverse in the parameters. It will figure it out- Parameters:
cert1
- one X509Certificatecert2
- one X509Certificate- Throws:
EBaseException
-
CertificatePair
public CertificatePair(byte[] cert1, byte[] cert2) throws EBaseException
construct a CertificatePair. It doesn't matter which is forward and which is reverse in the parameters. It will figure it out- Parameters:
cert1
- one certificate byte arraycert2
- one certificate byte array- Throws:
EBaseException
-
-
Method Detail
-
byteArraysAreEqual
public boolean byteArraysAreEqual(byte[] a, byte[] b)
compares contents two byte arrays returning true if exactly same.
-
encode
public void encode(java.io.OutputStream os) throws java.io.IOException
- Specified by:
encode
in interfaceorg.mozilla.jss.asn1.ASN1Value
- Throws:
java.io.IOException
-
encode
public void encode(org.mozilla.jss.asn1.Tag implicitTag, java.io.OutputStream os) throws java.io.IOException
- Specified by:
encode
in interfaceorg.mozilla.jss.asn1.ASN1Value
- Throws:
java.io.IOException
-
getTag
public org.mozilla.jss.asn1.Tag getTag()
- Specified by:
getTag
in interfaceorg.mozilla.jss.asn1.ASN1Value
-
-