org.cryptacular.generator.Nonce Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular.generator;
/**
* Nonce generation strategy.
*
* @author Middleware Services
*/
public interface Nonce
{
/**
* Generates a nonce value.
*
* @return Nonce bytes.
*
* @throws LimitException When a limit imposed by the nonce generation strategy, if any, is exceeded.
*/
byte[] generate()
throws LimitException;
/** @return Length in bytes of generated nonce values. */
int getLength();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy