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

PublicKeyImpl

public class PublicKeyImpl extends Object implements PublicKey
PublicKeyImpl

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



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

        return algorithm;
    
public byte[]getEncoded()

        byte[] result = new byte[encoding.length];
        System.arraycopy(encoding, 0, result, 0, encoding.length);
        return result;
    
public java.lang.StringgetFormat()

        return "X.509"; //$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);