|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pingidentity.opentoken.Token
public class Token
Provides encoding/decoding of OpenTokens.
Field Summary | |
---|---|
static int |
CIPHER_SUITE_3DES168CBC
Triple DES (168 bit, CBC mode, PKCS/5 padding) cipher suite |
static int |
CIPHER_SUITE_AES128CBC
AES (128 bit, CBC mode, PKCS/5 padding) cipher suite |
static int |
CIPHER_SUITE_AES256CBC
AES (256 bit, CBC mode, PKCS/5 padding) cipher suite |
static int |
CIPHER_SUITE_NULL
NULL (no encryption) cipher suite |
static String |
SUN_CRYPTO_PROVIDER
Sun JCE |
Method Summary | |
---|---|
static org.apache.commons.collections.MultiMap |
decode(String token,
com.pingidentity.opentoken.key.KeyManager keyman,
boolean useSunJCE)
Deprecated. Use encode() method with explicit parameter useVerboseErrorMessages to control verbose messages. |
static org.apache.commons.collections.MultiMap |
decode(String token,
com.pingidentity.opentoken.key.KeyManager keyman,
boolean useSunJCE,
boolean useVerboseErrorMessages)
Decodes a provided OpenToken and extracts the key/value(s) pairs.This new method is provided in order to enable suppression of verbose error messages in the TokenException message. |
static String |
encode(org.apache.commons.collections.MultiMap values,
com.pingidentity.opentoken.key.KeyManager keyman,
boolean useSunJCE)
Deprecated. Use encode() method with explicit parameter useVerboseErrorMessages to control verbose messages. |
static String |
encode(org.apache.commons.collections.MultiMap values,
com.pingidentity.opentoken.key.KeyManager keyman,
boolean useSunJCE,
boolean useVerboseErrorMessages,
boolean removeTrailingBackslashes)
Encode a map of key/value(s) pairs into an opentoken string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CIPHER_SUITE_NULL
public static final int CIPHER_SUITE_AES256CBC
public static final int CIPHER_SUITE_AES128CBC
public static final int CIPHER_SUITE_3DES168CBC
public static final String SUN_CRYPTO_PROVIDER
Method Detail |
---|
public static String encode(org.apache.commons.collections.MultiMap values, com.pingidentity.opentoken.key.KeyManager keyman, boolean useSunJCE) throws TokenException
values
- values to encodekeyman
- key manager to use for getting an encryption keyuseSunJCE
- use Sun JCE
TokenException
- if wrong type of key is provided or stream errors occur when performing encryption.public static String encode(org.apache.commons.collections.MultiMap values, com.pingidentity.opentoken.key.KeyManager keyman, boolean useSunJCE, boolean useVerboseErrorMessages, boolean removeTrailingBackslashes) throws TokenException
values
- values to encodekeyman
- key manager to use for getting an encryption keyuseSunJCE
- use Sun JCEuseVerboseErrorMessages
- if true, meaningful error messages will be included in TokenException.
If false, only a generic "Error" message is included.removeTrailingBackslashes
- if true, remove last backslash if last 2 characters are \' or \".
TokenException
- if wrong type of key is provided or stream errors occur when performing encryption.public static org.apache.commons.collections.MultiMap decode(String token, com.pingidentity.opentoken.key.KeyManager keyman, boolean useSunJCE) throws TokenException
token
- base-64 encoded, encrypted token that will be decodedkeyman
- key manager for getting a decryption keyuseSunJCE
- use Sun JCE
TokenException
- if wrong type of key is provided or stream errors occur when performing decryption.public static org.apache.commons.collections.MultiMap decode(String token, com.pingidentity.opentoken.key.KeyManager keyman, boolean useSunJCE, boolean useVerboseErrorMessages) throws TokenException
token
- base-64 encoded, encrypted token that will be decodedkeyman
- key manager for getting a decryption keyuseSunJCE
- use Sun JCEuseVerboseErrorMessages
- if true, meaningful error messages will be included in TokenException.
If false, only a generic "Error" message is included.
TokenException
- if wrong type of key is provided or stream errors occur when performing decryption.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |