
net.sf.mmm.crypto.hash.sha2.Sha512 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-crypto-jce Show documentation
Show all versions of mmm-crypto-jce Show documentation
Library for simple and more secure usage of cryptography (JCA and JCE).
The newest version!
package net.sf.mmm.crypto.hash.sha2;
import net.sf.mmm.crypto.hash.HashConfig;
import net.sf.mmm.crypto.provider.SecurityProvider;
/**
* {@link HashConfig} for SHA-512.
*
* @since 1.0.0
*/
public class Sha512 extends Sha2 {
/** {@link Sha512} using default provider. */
public static final Sha512 SHA_512 = new Sha512(1);
/** {@link Sha512} hashing twice using default provider. */
public static final Sha512 SHA_512_X2 = new Sha512(2);
/** The {@link #getAlgorithm() algorithm} name {@value}. */
public static final String ALGORITHM_SHA_512 = "SHA-512";
/**
* The constructor.
*
* @param iterationCount the {@link #getIterationCount() iteration count}.
*/
public Sha512(int iterationCount) {
this(null, iterationCount);
}
/**
* The constructor.
*
* @param provider the {@link SecurityProvider} to use.
*/
public Sha512(SecurityProvider provider) {
this(provider, 1);
}
/**
* The constructor.
*
* @param provider the {@link SecurityProvider} to use.
* @param iterationCount the {@link #getIterationCount() iteration count}.
*/
public Sha512(SecurityProvider provider, int iterationCount) {
super(ALGORITHM_SHA_512, provider, iterationCount);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy