/** * Add or replace an X.509 certificate extension. If an extension with the same name already exists, it is replaced * and returned. See {@link SelfSignedX509CertificateAndSigningKey.Builder#addExtension(boolean, String, String)} * for the supported extension names and values. * * @param critical whether the extension should be marked as critical * @param extensionName the extension name (must not be {@code null}) * @param extensionValue the extension value, as a string (must not be {@code null}) * @return the existing extension or {@code null} if no other extension with the same OID existed or if an * error occurs while attempting to add the extension */ public X509CertificateExtension addOrReplaceExtension(boolean critical, String extensionName, String extensionValue) { Assert.checkNotNullParam("name", extensionName); return addOrReplaceExtension(getX509CertificateExtension(critical, extensionName, extensionValue)); }
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
/** * Add or replace an X.509 certificate extension. If an extension with the same name already exists, it is replaced * and returned. See {@link SelfSignedX509CertificateAndSigningKey.Builder#addExtension(boolean, String, String)} * for the supported extension names and values. * * @param critical whether the extension should be marked as critical * @param extensionName the extension name (must not be {@code null}) * @param extensionValue the extension value, as a string (must not be {@code null}) * @return the existing extension or {@code null} if no other extension with the same OID existed or if an * error occurs while attempting to add the extension */ public X509CertificateExtension addOrReplaceExtension(boolean critical, String extensionName, String extensionValue) { Assert.checkNotNullParam("name", extensionName); return addOrReplaceExtension(getX509CertificateExtension(critical, extensionName, extensionValue)); }
/** * Add or replace an X.509 certificate extension. If an extension with the same name already exists, it is replaced * and returned. See {@link SelfSignedX509CertificateAndSigningKey.Builder#addExtension(boolean, String, String)} * for the supported extension names and values. * * @param critical whether the extension should be marked as critical * @param extensionName the extension name (must not be {@code null}) * @param extensionValue the extension value, as a string (must not be {@code null}) * @return the existing extension or {@code null} if no other extension with the same OID existed or if an * error occurs while attempting to add the extension */ public X509CertificateExtension addOrReplaceExtension(boolean critical, String extensionName, String extensionValue) { Assert.checkNotNullParam("name", extensionName); return addOrReplaceExtension(getX509CertificateExtension(critical, extensionName, extensionValue)); }
/** * Add or replace an X.509 certificate extension. If an extension with the same name already exists, it is replaced * and returned. See {@link SelfSignedX509CertificateAndSigningKey.Builder#addExtension(boolean, String, String)} * for the supported extension names and values. * * @param critical whether the extension should be marked as critical * @param extensionName the extension name (must not be {@code null}) * @param extensionValue the extension value, as a string (must not be {@code null}) * @return the existing extension or {@code null} if no other extension with the same OID existed or if an * error occurs while attempting to add the extension */ public X509CertificateExtension addOrReplaceExtension(boolean critical, String extensionName, String extensionValue) { Assert.checkNotNullParam("name", extensionName); return addOrReplaceExtension(getX509CertificateExtension(critical, extensionName, extensionValue)); }
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));
Assert.checkNotNullParam("name", extensionName); Assert.checkNotNullParam("value", extensionValue); return addExtension(getX509CertificateExtension(critical, extensionName, extensionValue));