Example usage for java.security SecureRandom getAlgorithm

List of usage examples for java.security SecureRandom getAlgorithm

Introduction

In this page you can find the example usage for java.security SecureRandom getAlgorithm.

Prototype

public String getAlgorithm() 

Source Link

Document

Returns the name of the algorithm implemented by this SecureRandom object.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");

    System.out.println(sr.getAlgorithm());
}