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

X509PublicKey

public class X509PublicKey extends Object implements PublicKey

Fields Summary
private final String
algorithm
private final byte[]
encoded
private final byte[]
keyBytes
Constructors Summary
public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes)

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

        return algorithm;
    
public byte[]getEncoded()

        return encoded;
    
public java.lang.StringgetFormat()

        return "X.509"; // $NON-NLS-1$
    
public java.lang.StringtoString()

        StringBuilder buf = new StringBuilder("algorithm = "); // $NON-NLS-1$
        buf.append(algorithm);
        buf.append(", params unparsed, unparsed keybits = \n"); // $NON-NLS-1$
        // TODO: implement compatible toString method() 
        // buf.append(Arrays.toString(keyBytes));

        return buf.toString();