Example usage for org.bouncycastle.asn1.x500 X500Name getInstance

List of usage examples for org.bouncycastle.asn1.x500 X500Name getInstance

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.x500 X500Name getInstance.

Prototype

public static X500Name getInstance(X500NameStyle style, Object obj) 

Source Link

Usage

From source file:net.sf.keystore_explorer.crypto.x509.X500NameUtils.java

License:Open Source License

/**
 * Convert an X.500 Principal to an X.500 Name.
 *
 * @param principal//  www .  java 2s .c  om
 *            X.500 Principal
 * @return X.500 Name
 */
public static X500Name x500PrincipalToX500Name(X500Principal principal) {
    return X500Name.getInstance(KseX500NameStyle.INSTANCE, principal.getEncoded());
}