Skip navigation links

Oracle Containers for J2EE Security Java API Reference
10g Release 3 (10.1.3.1.0)

B32115-01


oracle.security.jazn.sso.util
Class KeyTool

java.lang.Object
  extended byoracle.security.jazn.sso.util.KeyTool


public class KeyTool
extends java.lang.Object

Field Summary
static java.lang.String AES_128_CBC
           
static java.lang.String AES_192_CBC
           
static java.lang.String AES_256_CBC
           
static java.lang.String DES_EDE_CBC
           
static java.lang.String SHA_1
           

 

Constructor Summary
KeyTool()
           

 

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

 

Field Detail

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

Constructor Detail

KeyTool

public KeyTool()

Method Detail

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

Oracle Containers for J2EE Security Java API Reference
10g Release 3 (10.1.3.1.0)

B32115-01


Copyright © 2004, 2006, Oracle. All rights reserved.