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 com.liferay.saml.opensaml.integration Show documentation
Show all versions of com.liferay.saml.opensaml.integration Show documentation
Liferay SAML OpenSAML Integration
/* 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();
}