Class As2CertificateHelper
- java.lang.Object
-
- org.apache.camel.quarkus.component.as2.it.As2CertificateHelper
-
public class As2CertificateHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intserialNo
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bouncycastle.asn1.x509.AuthorityKeyIdentifiercreateAuthorityKeyId(PublicKey pub)static org.apache.camel.component.as2.api.AS2ClientManagercreateClient(int port)static org.bouncycastle.asn1.x509.SubjectKeyIdentifiercreateSubjectKeyId(PublicKey pub)static List<X509Certificate>getCertList()static KeyPairgetSigningKP()static X509CertificatemakeCertificate(KeyPair subKP, String subDN, KeyPair issKP, String issDN)create a basic X509 certificate from the given keysstatic voidsetup()
-
-
-
Method Detail
-
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
-
getCertList
public static List<X509Certificate> getCertList()
-
getSigningKP
public static KeyPair getSigningKP()
-
-