org.openmdx.kernel.security.token
Class TokenFactory
java.lang.Object
org.openmdx.kernel.security.token.TokenFactory
public class TokenFactory
- extends Object
Token Factory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenFactory
public TokenFactory(String algorithm,
PrivateKey privateKey)
- Constructor
- Parameters:
privateKey - algorithm -
create
public byte[] create(long timeout,
Serializable value)
throws TokenException
- Create a token for
- Parameters:
timeout - the timeout in milliseconds; or -1 if the token should
never expirevalue - the token's value
- Returns:
- the signed token
- Throws:
TokenException
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.