FileDocCategorySizeDatePackage
PKCS8EncodedKeySpec.javaAPI DocAndroid 1.5 API1949Wed May 06 22:41:06 BST 2009java.security.spec

PKCS8EncodedKeySpec

public class PKCS8EncodedKeySpec extends EncodedKeySpec
The key specification for an encoded private key in ASN.1 format as defined in the PKCS#8 standard.
since
Android 1.0

Fields Summary
Constructors Summary
public PKCS8EncodedKeySpec(byte[] encodedKey)
Creates a new {@code PKCS8EncodedKeySpec} 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 a copy of the encoded key bytes.

return
a copy of 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 "PKCS#8".
since
Android 1.0

        return "PKCS#8"; //$NON-NLS-1$