Example usage for org.bouncycastle.asn1.x509 X509Name toString

List of usage examples for org.bouncycastle.asn1.x509 X509Name toString

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.x509 X509Name toString.

Prototype

public String toString(boolean reverse, Hashtable oidSymbols) 

Source Link

Document

convert the structure to a string - if reverse is true the oids and values are listed out starting with the last element in the sequence (ala RFC 2253), otherwise the string will begin with the first element of the structure.

Usage

From source file:me.it_result.ca.bouncycastle.Utils.java

License:Open Source License

public static String generateAlias(X509Name name) {
    return name.toString(false, X509Name.DefaultSymbols);
}