au.net.aba.crypto.spec
Class AsciiEncodedKeySpec

java.lang.Object
  |
  +--java.security.spec.EncodedKeySpec
        |
        +--au.net.aba.crypto.spec.AsciiEncodedKeySpec

public class AsciiEncodedKeySpec
extends java.security.spec.EncodedKeySpec

A key in an ASCII encoded format. ASCII encoded key specs are expected to be an array of UTF8 characters representing a hexadecimal number, or a set of hexadecimal numbers. Specs made of more than 1 number, such as an RSAPrivateKey have the numbers separated by '.' characters, and the numbers are given in the same order as the equivalent key spec class; e.g an RSAPrivate key is the string "modulus.privateExponent" where modulus and privateExponent are both the hex representations of big numbers.


Field Summary
static java.lang.String ident
           
 
Constructor Summary
AsciiEncodedKeySpec(java.lang.String key)
          Create the KeySpec from the given string.
 
Method Summary
 java.lang.String getFormat()
          Returns the name of the encoding format used by this key specification.
 
Methods inherited from class java.security.spec.EncodedKeySpec
getEncoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

AsciiEncodedKeySpec

public AsciiEncodedKeySpec(java.lang.String key)
Create the KeySpec from the given string.
Method Detail

getFormat

public java.lang.String getFormat()
Returns the name of the encoding format used by this key specification.
Returns:
the string "ASCII"
Overrides:
getFormat in class java.security.spec.EncodedKeySpec