org.jasig.cas.util
Interface RandomStringGenerator

All Known Implementing Classes:
DefaultRandomStringGenerator

public interface RandomStringGenerator

Interface to return a random String.

Since:
3.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Method Summary
 int getMaxLength()
           
 int getMinLength()
           
 String getNewString()
           
 byte[] getNewStringAsBytes()
           
 

Method Detail

getMinLength

int getMinLength()
Returns:
the minimum length as an int guaranteed by this generator.

getMaxLength

int getMaxLength()
Returns:
the maximum length as an int guaranteed by this generator.

getNewString

String getNewString()
Returns:
the new random string

getNewStringAsBytes

byte[] getNewStringAsBytes()


Copyright © 2004-2013 Jasig. All Rights Reserved.