All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bouncycastle.asn1.x500.X500NameStyle Maven / Gradle / Ivy

The newest version!
package com.bouncycastle.asn1.x500;

import com.bouncycastle.asn1.ASN1Encodable;
import com.bouncycastle.asn1.ASN1ObjectIdentifier;

/**
 * It turns out that the number of standard ways the fields in a DN should be 
 * encoded into their ASN.1 counterparts is rapidly approaching the
 * number of machines on the internet. By default the X500Name class
 * will produce UTF8Strings in line with the current recommendations (RFC 3280).
 * 

*/ public interface X500NameStyle { /** * Convert the passed in String value into the appropriate ASN.1 * encoded object. * * @param oid the oid associated with the value in the DN. * @param value the value of the particular DN component. * @return the ASN.1 equivalent for the value. */ ASN1Encodable stringToValue(ASN1ObjectIdentifier oid, String value); ASN1ObjectIdentifier attrNameToOID(String attrName); boolean areEqual(X500Name name1, X500Name name2); RDN[] fromString(String dirName); int calculateHashCode(X500Name name); String toString(X500Name name); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy