org.opensaml
Interface SAMLIdentifier

All Known Implementing Classes:
SecureRandomIDProvider

public interface SAMLIdentifier

Encapsulates generation of identifiers and pseudo-random data for SAML objects

Author:
Scott Cantor, Tom Scavo

Method Summary
 byte[] generateRandomBytes(int n)
          Generate a sequence of random bytes.
 byte[] generateRandomBytes(SecureRandom random, int n)
          Generate a sequence of random bytes using the given SecureRandom object.
 String getIdentifier()
          Obtains a new identifier in string form
 

Method Detail

getIdentifier

public String getIdentifier()
                     throws SAMLException
Obtains a new identifier in string form

Returns:
The identifier in string form
Throws:
SAMLException - Raised if a problem occurs while generating the value

generateRandomBytes

public byte[] generateRandomBytes(SecureRandom random,
                                  int n)

Generate a sequence of random bytes using the given SecureRandom object.

Parameters:
random - a secure random number generator
n - the number of random bytes to generate
Returns:
the random bytes or null if the random argument is null
See Also:
SecureRandom

generateRandomBytes

public byte[] generateRandomBytes(int n)

Generate a sequence of random bytes.

Parameters:
n - the number of random bytes to generate
Returns:
the random bytes


Copyright ? 2005 UCAID. All Rights Reserved.