|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.util.DefaultUniqueTicketIdGenerator
public final class DefaultUniqueTicketIdGenerator
Default implementation of UniqueTicketIdGenerator. Implementation
utilizes a DefaultLongNumericGeneraor and a DefaultRandomStringGenerator to
construct the ticket id.
Tickets are of the form [PREFIX]-[SEQUENCE NUMBER]-[RANDOM STRING]-[SUFFIX]
| Constructor Summary | |
|---|---|
DefaultUniqueTicketIdGenerator()
Creates an instance of DefaultUniqueTicketIdGenerator with default values including a DefaultLongNumericGenerator with a starting value of
1. |
|
DefaultUniqueTicketIdGenerator(int maxLength)
Creates an instance of DefaultUniqueTicketIdGenerator with a specified maximum length for the random portion. |
|
DefaultUniqueTicketIdGenerator(int maxLength,
java.lang.String suffix)
Creates an instance of DefaultUniqueTicketIdGenerator with a specified maximum length for the random portion. |
|
DefaultUniqueTicketIdGenerator(java.lang.String suffix)
Creates an instance of DefaultUniqueTicketIdGenerator with default values including a DefaultLongNumericGenerator with a starting value of
1. |
|
| Method Summary | |
|---|---|
java.lang.String |
getNewTicketId(java.lang.String prefix)
Return a new unique ticket id beginning with the prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUniqueTicketIdGenerator()
DefaultLongNumericGenerator with a starting value of
1.
public DefaultUniqueTicketIdGenerator(int maxLength)
maxLength - the maximum length of the random string used to generate
the id.public DefaultUniqueTicketIdGenerator(java.lang.String suffix)
DefaultLongNumericGenerator with a starting value of
1.
suffix - the value to append at the end of the unique id to ensure
uniqueness across JVMs.
public DefaultUniqueTicketIdGenerator(int maxLength,
java.lang.String suffix)
maxLength - the maximum length of the random string used to generate
the id.suffix - the value to append at the end of the unique id to ensure
uniqueness across JVMs.| Method Detail |
|---|
public java.lang.String getNewTicketId(java.lang.String prefix)
UniqueTicketIdGenerator
getNewTicketId in interface UniqueTicketIdGeneratorprefix - The prefix we want attached to the ticket.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||