@Override public String toToken(final T obj) { final String token = this.token.toToken(obj); return encrypt(token, this.cipher); }
@Override public T fromToken(final String encrypted) { final String token = decrypt(encrypted, this.cipher); return this.token.fromToken(token); } }
@Override public T fromToken(final String encrypted) { final String token = decrypt(encrypted, this.cipher); return this.token.fromToken(token); } }
@Override public String toToken(final T obj) { final String token = this.token.toToken(obj); return encrypt(token, this.cipher); }