|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenFactory
Reponsible for the creation of Token
's this should be the
only way you create a Token for Crowd
Method Summary | |
---|---|
Token |
create(long directoryID,
java.lang.String name,
java.util.List<ValidationFactor> validationFactors)
Generates a token key based on the supplied validationFactors . |
Token |
create(long directoryID,
java.lang.String name,
java.util.List<ValidationFactor> validationFactors,
java.lang.String secretNumber)
Generates a token key based on the supplied validationFactors . |
Method Detail |
---|
Token create(long directoryID, java.lang.String name, java.util.List<ValidationFactor> validationFactors) throws InvalidTokenException
validationFactors
.
directoryID
- associated directory for the Tokenname
- the name for the token, this may be the 'username' of an associated Principal or application name.validationFactors
- The validation factors that are used when generating a key.
InvalidTokenException
- If there was an error generating the key, usually if there was an encoding exception.Token create(long directoryID, java.lang.String name, java.util.List<ValidationFactor> validationFactors, java.lang.String secretNumber) throws InvalidTokenException
validationFactors
.
directoryID
- associated directory for the Tokenname
- the name for the token, this may be the 'username' of an associated Principal or application name.validationFactors
- The validation factors that are used when generating a key.secretNumber
- The 'secret number' to add as a validation factor
InvalidTokenException
- If there was an error generating the key, usually if there was an encoding exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |