public class SecureToken<T> extends Object implements TypeSafeToken<T>
Constructor and Description |
---|
SecureToken(TypeSafeToken<T> token,
cn.home1.oss.lib.common.crypto.EncodeCipher cipher) |
public SecureToken(TypeSafeToken<T> token, cn.home1.oss.lib.common.crypto.EncodeCipher cipher)
public String toToken(T obj)
toToken
in interface TypeSafeToken<T>
public T fromToken(String encrypted)
fromToken
in interface TypeSafeToken<T>
Copyright © 2017. All rights reserved.