FileDocCategorySizeDatePackage
X509EncodedKeySpec.javaAPI DocAndroid 1.5 API1878Wed May 06 22:41:06 BST 2009java.security.spec

X509EncodedKeySpec

public class X509EncodedKeySpec extends EncodedKeySpec
The key specification of an X.509 encoded key in ASN.1 format.
since
Android 1.0

Fields Summary
Constructors Summary
public X509EncodedKeySpec(byte[] encodedKey)
Creates a new {@code X509EncodedKeySpec} with the specified encoded key bytes.

param
encodedKey the encoded key bytes.
since
Android 1.0

        // Super class' ctor makes defensive parameter copy
        super(encodedKey);
    
Methods Summary
public byte[]getEncoded()
Returns the encoded key bytes.

return
the encoded key bytes.
since
Android 1.0

        // Super class' getEncoded() always returns a new array
        return super.getEncoded();
    
public final java.lang.StringgetFormat()
Returns the name of the encoding format of this encoded key specification.

return
the string "X.509".
since
Android 1.0

        return "X.509"; //$NON-NLS-1$