Class As2CertificateHelper
java.lang.Object
org.apache.camel.quarkus.component.as2.it.As2CertificateHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.asn1.x509.AuthorityKeyIdentifierstatic org.apache.camel.component.as2.api.AS2ClientManagercreateClient(int port) static org.apache.camel.component.as2.api.AS2ClientConnectioncreateClientConnection(int port) static org.bouncycastle.asn1.x509.SubjectKeyIdentifierstatic List<X509Certificate>static KeyPairstatic X509CertificatemakeCertificate(KeyPair subKP, String subDN, KeyPair issKP, String issDN) create a basic X509 certificate from the given keysstatic voidsetup()
-
Field Details
-
serialNo
static int serialNo
-
-
Method Details
-
setup
- Throws:
Exception
-
makeCertificate
public static X509Certificate makeCertificate(KeyPair subKP, String subDN, KeyPair issKP, String issDN) throws GeneralSecurityException, IOException, org.bouncycastle.operator.OperatorCreationException create a basic X509 certificate from the given keys- Throws:
GeneralSecurityExceptionIOExceptionorg.bouncycastle.operator.OperatorCreationException
-
createAuthorityKeyId
public static org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyId(PublicKey pub) throws IOException - Throws:
IOException
-
createSubjectKeyId
public static org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyId(PublicKey pub) throws IOException - Throws:
IOException
-
createClient
public static org.apache.camel.component.as2.api.AS2ClientManager createClient(int port) throws IOException - Throws:
IOException
-
createClientConnection
public static org.apache.camel.component.as2.api.AS2ClientConnection createClientConnection(int port) throws IOException - Throws:
IOException
-
getCertList
-
getSigningKP
-