|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.security.Base64UrlEncodedRandomStringGenerator
public class Base64UrlEncodedRandomStringGenerator
A generator for random strings that uses a newly generated random byte sequence and returns it base64url encoded (without padding).
Constructor Summary | |
---|---|
Base64UrlEncodedRandomStringGenerator(org.pfsw.bif.ByteSequenceGenerator byteSequenceGenerator)
Creates a new instance that creates new strings based on the given ByteSequenceGenerator . |
|
Base64UrlEncodedRandomStringGenerator(int byteSequenceLength)
Creates a new instance that creates new strings based on a ByteSequenceGenerator
with the given length for the by sequences. |
Method Summary | |
---|---|
static Base64UrlEncodedRandomStringGenerator |
create(org.pfsw.bif.ByteSequenceGenerator byteSequenceGenerator)
Creates a new instance that creates new strings based on the given ByteSequenceGenerator . |
static Base64UrlEncodedRandomStringGenerator |
create(int byteSequenceLength)
Creates a new instance that creates new strings based on a ByteSequenceGenerator
with the given length for the by sequences. |
java.lang.String |
generateString()
|
java.lang.String |
generateString(int length)
|
protected org.pfsw.bif.conversion.IBase64Encoder |
getBase64Encoder()
|
protected org.pfsw.bif.ByteSequenceGenerator |
getByteSequenceGenerator()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Base64UrlEncodedRandomStringGenerator(int byteSequenceLength)
ByteSequenceGenerator
with the given length for the by sequences.
byteSequenceLength
- The length of the random byte sequences to be used.public Base64UrlEncodedRandomStringGenerator(org.pfsw.bif.ByteSequenceGenerator byteSequenceGenerator)
ByteSequenceGenerator
.
byteSequenceGenerator
- The generator for new byte sequences.Method Detail |
---|
public static Base64UrlEncodedRandomStringGenerator create(int byteSequenceLength)
ByteSequenceGenerator
with the given length for the by sequences.
byteSequenceLength
- The length of the random byte sequences to be used.public static Base64UrlEncodedRandomStringGenerator create(org.pfsw.bif.ByteSequenceGenerator byteSequenceGenerator)
ByteSequenceGenerator
.
byteSequenceGenerator
- The generator for new byte sequences.public java.lang.String generateString()
generateString
in interface org.pfsw.text.StringGenerator
public java.lang.String generateString(int length)
generateString
in interface org.pfsw.text.StringGenerator
public java.lang.String toString()
toString
in class java.lang.Object
protected org.pfsw.bif.conversion.IBase64Encoder getBase64Encoder()
protected org.pfsw.bif.ByteSequenceGenerator getByteSequenceGenerator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |