| | |
| | | */ |
| | | public boolean booleanValue() |
| | | { |
| | | |
| | | return booleanValue; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setValue(boolean booleanValue) |
| | | { |
| | | |
| | | this.booleanValue = booleanValue; |
| | | setValueInternal(encodeValue(booleanValue)); |
| | | } |
| | |
| | | public void setValue(byte[] value) |
| | | throws ASN1Exception |
| | | { |
| | | |
| | | if (value == null) |
| | | { |
| | | int msgID = MSGID_ASN1_BOOLEAN_SET_VALUE_NULL; |
| | |
| | | public static ASN1Boolean decodeAsBoolean(ASN1Element element) |
| | | throws ASN1Exception |
| | | { |
| | | |
| | | if (element == null) |
| | | { |
| | | int msgID = MSGID_ASN1_BOOLEAN_DECODE_ELEMENT_NULL; |
| | |
| | | public static ASN1Boolean decodeAsBoolean(byte[] encodedElement) |
| | | throws ASN1Exception |
| | | { |
| | | |
| | | // First make sure that the array is not null and long enough to contain |
| | | // a valid ASN.1 Boolean element. |
| | | if (encodedElement == null) |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("ASN1Boolean(type="); |
| | | buffer.append(byteToHex(getType())); |
| | | buffer.append(", value="); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | |
| | | StringBuilder indentBuf = new StringBuilder(indent); |
| | | for (int i=0 ; i < indent; i++) |
| | | { |