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

ExtensionValue

public class ExtensionValue extends Object
Base class for extension value structures.

Fields Summary
protected byte[]
encoding
Encoded form of the extension.
Constructors Summary
public ExtensionValue()
Default constructor.

 
public ExtensionValue(byte[] encoding)
Creates the object on the base of its encoded form.

        this.encoding = encoding;
    
Methods Summary
public voiddumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)
Places the string representation of extension value into the StringBuffer object.

        buffer.append(prefix).append("Unparseable extension value:\n"); //$NON-NLS-1$
        if (encoding == null) {
            encoding = getEncoded();
        }
        if (encoding == null) {
            buffer.append("NULL\n"); //$NON-NLS-1$
        } else {
            buffer.append(Array.toString(encoding, prefix));
        }
    
public voiddumpValue(java.lang.StringBuffer buffer)
Places the string representation of extension value into the StringBuffer object.

        dumpValue(buffer, ""); //$NON-NLS-1$
    
public byte[]getEncoded()
Returns encoded form of the object.

        return encoding;