Skip navigation links
oracle.security.jazn.sso.util
Class KeyTool
java.lang.Object
oracle.security.jazn.sso.util.KeyTool
- public class KeyTool
- extends java.lang.Object
Method Summary |
static Cipher |
createCipher(java.lang.String key)
|
static Cipher |
createCipher(SymmetricKey key, java.lang.String algo)
|
static SymmetricKey |
decodeKey(java.lang.String key)
|
static java.lang.String |
generateEncodedKey(java.lang.String type)
|
static SymmetricKey |
generateKey(java.lang.String type)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AES_128_CBC
public static final java.lang.String AES_128_CBC
-
- See Also:
- Constant Field Values
AES_192_CBC
public static final java.lang.String AES_192_CBC
-
- See Also:
- Constant Field Values
AES_256_CBC
public static final java.lang.String AES_256_CBC
-
- See Also:
- Constant Field Values
DES_EDE_CBC
public static final java.lang.String DES_EDE_CBC
-
- See Also:
- Constant Field Values
SHA_1
public static final java.lang.String SHA_1
-
- See Also:
- Constant Field Values
KeyTool
public KeyTool()
generateKey
public static SymmetricKey generateKey(java.lang.String type)
throws InvalidKeyTypeException
-
- Throws:
InvalidKeyTypeException
generateEncodedKey
public static java.lang.String generateEncodedKey(java.lang.String type)
throws InvalidKeyTypeException
-
- Throws:
InvalidKeyTypeException
decodeKey
public static SymmetricKey decodeKey(java.lang.String key)
throws InvalidKeyTypeException
-
- Throws:
InvalidKeyTypeException
createCipher
public static Cipher createCipher(java.lang.String key)
throws InvalidKeyTypeException
-
- Throws:
InvalidKeyTypeException
createCipher
public static Cipher createCipher(SymmetricKey key,
java.lang.String algo)
throws InvalidKeyTypeException
-
- Throws:
InvalidKeyTypeException
main
public static void main(java.lang.String[] args)
Skip navigation links
Copyright © 2004, 2006, Oracle. All rights reserved.