| | |
| | | */ |
| | | public String stringValue() |
| | | { |
| | | |
| | | if (stringValue == null) |
| | | { |
| | | /* |
| | |
| | | */ |
| | | public void stringValue(StringBuilder buffer) |
| | | { |
| | | |
| | | if (stringValue != null) |
| | | { |
| | | buffer.append(stringValue); |
| | |
| | | */ |
| | | public void setValue(String stringValue) |
| | | { |
| | | |
| | | if (stringValue == null) |
| | | { |
| | | this.stringValue = null; |
| | |
| | | */ |
| | | public void setValue(byte[] value) |
| | | { |
| | | |
| | | if (value == null) |
| | | { |
| | | setValueInternal(NO_VALUE); |
| | |
| | | public static ASN1OctetString decodeAsOctetString(ASN1Element element) |
| | | throws ASN1Exception |
| | | { |
| | | |
| | | if (element == null) |
| | | { |
| | | int msgID = MSGID_ASN1_OCTET_STRING_DECODE_ELEMENT_NULL; |
| | |
| | | public static ASN1OctetString decodeAsOctetString(byte[] encodedElement) |
| | | throws ASN1Exception |
| | | { |
| | | |
| | | // First make sure that the array is not null and long enough to contain |
| | | // a valid ASN.1 element. |
| | | if (encodedElement == null) |
| | |
| | | */ |
| | | public ASN1OctetString duplicate() |
| | | { |
| | | |
| | | byte[] value = value(); |
| | | int length = value.length; |
| | | |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append(stringValue()); |
| | | } |
| | | |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | |
| | | StringBuilder indentBuf = new StringBuilder(indent); |
| | | for (int i=0 ; i < indent; i++) |
| | | { |
| | |
| | | */ |
| | | public ASN1OctetString toASN1OctetString() |
| | | { |
| | | |
| | | return this; |
| | | } |
| | | } |