Search in sources :

Example 1 with ASN1IA5String

use of org.webpki.asn1.ASN1IA5String in project keystore-explorer by kaikramer.

the class X509Ext method getNetscapeCaPolicyUrlStringValue.

private static String getNetscapeCaPolicyUrlStringValue(byte[] value) throws IOException {
    // @formatter:off
    /* NetscapeCAPolicyUrl ::= DERIA5String */
    // @formatter:on
    StringBuilder sb = new StringBuilder();
    ASN1IA5String netscapeCaPolicyUrl = ASN1IA5String.getInstance(value);
    sb.append(netscapeCaPolicyUrl.getString());
    sb.append(NEWLINE);
    return sb.toString();
}
Also used : ASN1IA5String(org.bouncycastle.asn1.ASN1IA5String)

Example 2 with ASN1IA5String

use of org.webpki.asn1.ASN1IA5String in project keystore-explorer by kaikramer.

the class X509Ext method getNetscapeCertificateRenewalStringValue.

private static String getNetscapeCertificateRenewalStringValue(byte[] value) throws IOException {
    // @formatter:off
    /* NetscapeCertRenewalUrl ::= DERIA5String */
    // @formatter:on
    StringBuilder sb = new StringBuilder();
    ASN1IA5String netscapeCertRenewalUrl = ASN1IA5String.getInstance(value);
    sb.append(netscapeCertRenewalUrl.getString());
    sb.append(NEWLINE);
    return sb.toString();
}
Also used : ASN1IA5String(org.bouncycastle.asn1.ASN1IA5String)

Example 3 with ASN1IA5String

use of org.webpki.asn1.ASN1IA5String in project keystore-explorer by kaikramer.

the class X509Ext method getNetscapeCommentStringValue.

private static String getNetscapeCommentStringValue(byte[] value) throws IOException {
    // @formatter:off
    /* NetscapeComment ::= DERIA5String */
    // @formatter:on
    StringBuilder sb = new StringBuilder();
    ASN1IA5String netscapeComment = ASN1IA5String.getInstance(value);
    sb.append(netscapeComment.getString());
    sb.append(NEWLINE);
    return sb.toString();
}
Also used : ASN1IA5String(org.bouncycastle.asn1.ASN1IA5String)

Example 4 with ASN1IA5String

use of org.webpki.asn1.ASN1IA5String in project keystore-explorer by kaikramer.

the class X509Ext method getNetscapeCaRevocationUrlStringValue.

private static String getNetscapeCaRevocationUrlStringValue(byte[] value) throws IOException {
    // @formatter:off
    /* NetscapeCARevocationUrl ::= DERIA5String */
    // @formatter:on
    StringBuilder sb = new StringBuilder();
    ASN1IA5String netscapeCaRevocationUrl = ASN1IA5String.getInstance(value);
    sb.append(netscapeCaRevocationUrl.getString());
    sb.append(NEWLINE);
    return sb.toString();
}
Also used : ASN1IA5String(org.bouncycastle.asn1.ASN1IA5String)

Example 5 with ASN1IA5String

use of org.webpki.asn1.ASN1IA5String in project keystore-explorer by kaikramer.

the class X509Ext method getNetscapeBaseUrlStringValue.

private static String getNetscapeBaseUrlStringValue(byte[] value) throws IOException {
    // @formatter:off
    /* NetscapeBaseUrl ::= DERIA5String */
    // @formatter:on
    StringBuilder sb = new StringBuilder();
    ASN1IA5String netscapeBaseUrl = ASN1IA5String.getInstance(value);
    sb.append(netscapeBaseUrl.getString());
    sb.append(NEWLINE);
    return sb.toString();
}
Also used : ASN1IA5String(org.bouncycastle.asn1.ASN1IA5String)

Aggregations

ASN1IA5String (org.bouncycastle.asn1.ASN1IA5String)8 ASN1IA5String (com.github.zhenwei.core.asn1.ASN1IA5String)6 ASN1OctetString (com.github.zhenwei.core.asn1.ASN1OctetString)4 IOException (java.io.IOException)4 DEROctetString (com.github.zhenwei.core.asn1.DEROctetString)3 ASN1BitString (com.github.zhenwei.core.asn1.ASN1BitString)2 ASN1ObjectIdentifier (com.github.zhenwei.core.asn1.ASN1ObjectIdentifier)2 ASN1UTF8String (com.github.zhenwei.core.asn1.ASN1UTF8String)2 BEROctetString (com.github.zhenwei.core.asn1.BEROctetString)2 DERBitString (com.github.zhenwei.core.asn1.DERBitString)2 CRLDistPoint (com.github.zhenwei.core.asn1.x509.CRLDistPoint)2 DistributionPoint (com.github.zhenwei.core.asn1.x509.DistributionPoint)2 GeneralName (com.github.zhenwei.core.asn1.x509.GeneralName)2 IssuingDistributionPoint (com.github.zhenwei.core.asn1.x509.IssuingDistributionPoint)2 LocaleString (com.github.zhenwei.core.i18n.LocaleString)2 Vector (java.util.Vector)2 ASN1IA5String (org.webpki.asn1.ASN1IA5String)2 ASN1ApplicationSpecific (com.github.zhenwei.core.asn1.ASN1ApplicationSpecific)1 ASN1BMPString (com.github.zhenwei.core.asn1.ASN1BMPString)1 ASN1Boolean (com.github.zhenwei.core.asn1.ASN1Boolean)1