Example usage for java.security Provider toString

List of usage examples for java.security Provider toString

Introduction

In this page you can find the example usage for java.security Provider toString.

Prototype

public String toString() 

Source Link

Document

Returns a string with the name and the version string of this provider.

Usage

From source file:com.adaptris.security.util.SecurityUtil.java

public static String getAlgorithms() {
    initialise();//from w  w  w.  j a v a2  s  .com
    StringBuffer sb = new StringBuffer("Security Algorithms available");
    for (Provider provider : Security.getProviders()) {
        sb.append("\nProvider : " + provider.toString() + "\n");

        Object[] objs = provider.keySet().toArray();
        Arrays.sort(objs);
        for (Object o : objs) {
            sb.append(o.toString() + ", ");
        }
    }
    return sb.toString();
}