org.openmdx.kernel.security.token
Class TokenFactory

java.lang.Object
  extended by org.openmdx.kernel.security.token.TokenFactory

public class TokenFactory
extends Object

Token Factory


Constructor Summary
TokenFactory(String algorithm, PrivateKey privateKey)
          Constructor
 
Method Summary
 byte[] create(long timeout, Serializable value)
          Create a token for
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenFactory

public TokenFactory(String algorithm,
                    PrivateKey privateKey)
Constructor

Parameters:
privateKey -
algorithm -
Method Detail

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 expire
value - 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.