public class X509CertificateWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OID_QC_COMPLIANCE |
static String |
OID_QC_LIMIT_VALUE |
static String |
OID_QUALIFIED_CERTIFICATE |
Constructor and Description |
---|
X509CertificateWrapper(byte[] certBytes)
Constructs a X509CertificateWrapper from the input certificate bytes
|
X509CertificateWrapper(X509Certificate cert) |
Modifier and Type | Method and Description |
---|---|
String |
getAIALocation()
Returns the Certificate AIALocation
|
String |
getBankName() |
byte[] |
getCertificate()
Gets the DER the certificate DER encoded
|
String |
getCommonName()
Retrieves the commonName in the SubjectName
field in the SubjectName field
|
Date |
getDateOfBirth()
Retrieves the DateOfBirth Attribute value from the
certificate.
|
String |
getEmailAddress()
Retrieves the Email extension from a Certificate
|
byte[] |
getExtension(String oid)
Returns the certificate extensions as byte[]
|
String |
getIsQualifiedCertificate() |
String |
getIssuerName()
Returns the Certificate IssuerName
|
String |
getKeyAlgorithm()
Returns the Certificate KeyAlgorithm
|
int |
getKeySize()
Returns the Certificate KeySize
|
boolean[] |
getkeyUsage() |
String |
getOriginator()
Retrieves the value of the Originator Extension field
|
String |
getPhoneNumber() |
String |
getPolicyOID()
Returns the Certificate PolicyOID
|
String |
getQcValueLimitAmount() |
String |
getQcValueLimitCurrency() |
String |
getSerialNumber()
Returns the Certificate SerialNumber
|
String |
getSubjectName()
Returns the Certificate SubjectName
|
String |
getSubjectSerial() |
String |
getUniqueId()
Retrieves the PID from the serialNumber field in the DN,
if null then gets the old UniqueId from the OU
field in the SubjectName field
|
Date |
getValidFromDate()
Returns the Certificate NotBefore
|
Date |
getValidToDate()
Returns the Certificate NotAfter
|
String |
getVersionNumber()
Returns the Certificate VersionNumber
|
public static final String OID_QUALIFIED_CERTIFICATE
public static final String OID_QC_COMPLIANCE
public static final String OID_QC_LIMIT_VALUE
public X509CertificateWrapper(byte[] certBytes) throws BIDException
certBytes
- byte[] The certificate to parseBIDException
- If the input certificate byte[] is invalidpublic X509CertificateWrapper(X509Certificate cert) throws BIDException
BIDException
public byte[] getCertificate() throws BIDException
BIDException
- If something failspublic String getIssuerName()
public String getSubjectName()
public Date getValidFromDate() throws BIDException
BIDException
- If something failspublic Date getValidToDate()
public String getSerialNumber()
public String getVersionNumber()
public String getKeyAlgorithm()
public int getKeySize()
public byte[] getExtension(String oid) throws BIDException
oid
- The Object IdentifierBIDException
- If something failspublic String getEmailAddress() throws BIDException
BIDException
- If something failspublic String getPolicyOID()
public String getAIALocation() throws BIDException
BIDException
- If something failspublic String getUniqueId()
public String getCommonName()
public Date getDateOfBirth()
public String getIsQualifiedCertificate()
public String getQcValueLimitAmount()
public String getQcValueLimitCurrency()
public String getOriginator() throws BIDException
BIDException
- If retrieving the extension failspublic String getBankName()
public String getPhoneNumber()
public boolean[] getkeyUsage()
public String getSubjectSerial()
Copyright © 2017 Nets Branch Norway. All Rights Reserved.