Class X509Generator
java.lang.Object
org.kopi.ebics.certificate.X509Generator
An X509 certificate generator for EBICS protocol.
Generated certificates are self signed certificates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(KeyPair keypair, String issuer, Date notBefore, Date notAfter, X509Constants.CertificateKeyUsage keyusage) Returns anX509Certificatefrom a givenKeyPairand limit dates validationsgenerateA005Certificate(KeyPair keypair, String issuer, Date notBefore, Date notAfter) Generates the signature certificate for the EBICS protocolgenerateE002Certificate(KeyPair keypair, String issuer, Date notBefore, Date notAfter) Generates the encryption certificate for the EBICS protocolgenerateX002Certificate(KeyPair keypair, String issuer, Date notBefore, Date notAfter) Generates the authentication certificate for the EBICS protocol
-
Constructor Details
-
X509Generator
public X509Generator()
-
-
Method Details
-
generateA005Certificate
public X509Certificate generateA005Certificate(KeyPair keypair, String issuer, Date notBefore, Date notAfter) throws GeneralSecurityException, IOException Generates the signature certificate for the EBICS protocol- Parameters:
keypair- the key pairissuer- the certificate issuernotBefore- the begin validity datenotAfter- the end validity date- Returns:
- the signature certificate
- Throws:
GeneralSecurityExceptionIOException
-
generateX002Certificate
public X509Certificate generateX002Certificate(KeyPair keypair, String issuer, Date notBefore, Date notAfter) throws GeneralSecurityException, IOException Generates the authentication certificate for the EBICS protocol- Parameters:
keypair- the key pairissuer- the certificate issuernotBefore- the begin validity datenotAfter- the end validity date- Returns:
- the authentication certificate
- Throws:
GeneralSecurityExceptionIOException
-
generateE002Certificate
public X509Certificate generateE002Certificate(KeyPair keypair, String issuer, Date notBefore, Date notAfter) throws GeneralSecurityException, IOException Generates the encryption certificate for the EBICS protocol- Parameters:
keypair- the key pairissuer- the certificate issuernotBefore- the begin validity datenotAfter- the end validity date- Returns:
- the encryption certificate
- Throws:
GeneralSecurityExceptionIOException
-
generate
public X509Certificate generate(KeyPair keypair, String issuer, Date notBefore, Date notAfter, X509Constants.CertificateKeyUsage keyusage) throws GeneralSecurityException, IOException Returns anX509Certificatefrom a givenKeyPairand limit dates validations- Parameters:
keypair- the given key pairissuer- the certificate issuernotBefore- the begin validity datenotAfter- the end validity datekeyusage- the certificate key usage- Returns:
- the X509 certificate
- Throws:
GeneralSecurityExceptionIOException
-