FileDocCategorySizeDatePackage
EncodedKeySpec.javaAPI DocphoneME MR2 API (J2ME)2496Wed May 02 18:00:38 BST 2007java.security.spec

EncodedKeySpec

public abstract class EncodedKeySpec extends Object implements KeySpec
This class represents a public key in encoded format.
version
1.18, 01/23/03
see
java.security.Key
see
java.security.KeyFactory
see
KeySpec
see
X509EncodedKeySpec
since
1.2

Fields Summary
private byte[]
encodedKey
The encoded key to use in the signature processing.
Constructors Summary
public EncodedKeySpec(byte[] encodedKey)
Creates a new EncodedKeySpec with the given encoded key.

param
encodedKey the encoded key.


	this.encodedKey = Util.cloneArray(encodedKey);
    
Methods Summary
public byte[]getEncoded()
Returns the encoded key.

return
the encoded key.


	return Util.cloneArray(encodedKey);
    
public abstract java.lang.StringgetFormat()
Returns the name of the encoding format associated with this key specification.

If the opaque representation of a key (see {@link java.security.Key Key}) can be generated (see {@link java.security.KeyFactory KeyFactory}) from this key specification (or a subclass of it), getFormat called on the opaque key returns the same value as the getFormat method of this key specification.

return
a string representation of the encoding format.