public class JSCertificates extends Object
Constructor and Description |
---|
JSCertificates() |
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
getBankIDRootCertificate(X509Certificate level1CA)
Returns the BankID root certificate with a particular subject DN
|
static X509Certificate[] |
getBankIDRootCertificates()
Returns the BankID root certificate for all environments as X509 instances.
|
static Set<TrustAnchor> |
getBankIDThrustAnchors(X509Certificate level1OrRoot)
Returns the BankID root certificates as a set of TrustAnchors.
|
static X509Certificate[] |
getRootCertificate(String bankidRootCn)
Returns the 2 BankID root certificates for the given environment.
|
public static X509Certificate[] getBankIDRootCertificates() throws CertificateException
CertificateException
public static X509Certificate getBankIDRootCertificate(X509Certificate level1CA) throws CertificateException, IOException
level1CA
- The certificateCertificateException
IOException
public static Set<TrustAnchor> getBankIDThrustAnchors(X509Certificate level1OrRoot) throws CertificateException
level1OrRoot
- The subjectDN for the current environment, or nullCertificateException
public static X509Certificate[] getRootCertificate(String bankidRootCn)
bankidRootCn
- The commonName as expected for the current environment.Copyright © 2017 Nets Branch Norway. All Rights Reserved.