FileDocCategorySizeDatePackage
PrivateKeyImpl.javaAPI DocAndroid 1.5 API1826Wed May 06 22:41:06 BST 2009org.apache.harmony.security

PrivateKeyImpl

public class PrivateKeyImpl extends Object implements PrivateKey
PrivateKeyImpl

Fields Summary
private static final long
serialVersionUID
private String
algorithm
private byte[]
encoding
Constructors Summary
public PrivateKeyImpl(String algorithm)


       
        this.algorithm = algorithm;
    
Methods Summary
public java.lang.StringgetAlgorithm()

        return algorithm;
    
public byte[]getEncoded()


        byte[] toReturn = new byte[encoding.length];
        System.arraycopy(encoding, 0, toReturn, 0, encoding.length);

        return toReturn;
    
public java.lang.StringgetFormat()

        return "PKCS#8"; //$NON-NLS-1$
    
public voidsetAlgorithm(java.lang.String algorithm)

        this.algorithm = algorithm;
    
public voidsetEncoding(byte[] encoding)

        this.encoding = new byte[encoding.length];
        System.arraycopy(encoding, 0, this.encoding, 0, encoding.length);