This class creates and validates tokens that allow the GridShibCA to verify the user is intending to use the GridShibCA and not being redirected here by, e.g., malicous JavaScript
This class uses the following values from gridshib-ca.conf:
new()generate() method.
Arguments:
$userId - Id of user
$remoteHost - host from which user is connecting
Returns: Token instance
generate()Arguments: None
Returns: Token as string, undef on error
verify()Arguments:
$encTokenString - token as string
Returns: 1 on success, 0 otherwise
getError()Arguments: None
Returns: String containing Error Message from command. May be undef if no error has occurred.
These internal methods not intended for external use.
_error()Arguments: As to sprintf()
Returns: Nothing
GridShib-CA version 0.4.0 ($Id: TokenGenerator.pm.in,v 1.6 2007/03/17 04:31:42 welch Exp $)