Example usage for org.apache.commons.crypto.random CryptoRandom getClass

List of usage examples for org.apache.commons.crypto.random CryptoRandom getClass

Introduction

In this page you can find the example usage for org.apache.commons.crypto.random CryptoRandom getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:de.siegmar.securetransfer.component.Cryptor.java

private CryptoRandom initRandom() {
    try {/*from  ww  w  .  j  ava  2  s.c om*/
        final CryptoRandom cryptoRandom = CryptoRandomFactory.getCryptoRandom();
        LOG.info("Initialized {} for secure random generation", cryptoRandom.getClass());
        return cryptoRandom;
    } catch (final GeneralSecurityException e) {
        throw new IllegalStateException(e);
    }
}