|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.model.ASN1Value
schemajic.model.ASN1OctetString
public class ASN1OctetString
Models the abstract concept of the value of
ASN.1 type OCTET STRING.
Type OCTET STRING is a simple builtin type whose
distinguished values are an ordered sequence of zero or more
octets, with each octet composed of eight bits.
Universal class tag assignment is UNIVERSAL 4.
XML ASN.1 type name is OCTET_STRING.
| Constructor Summary | |
|---|---|
ASN1OctetString()
Constructor for ASN1OctetString. |
|
ASN1OctetString(byte[] bytes)
Constructor for ASN1OctetString with byte array parameter. |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor,
java.lang.Object object)
Accepts a visit from the ValueVisitor |
boolean |
equals(java.lang.Object object)
Returns boolean true if the value of
the provided object is equal to the current value. |
Type |
getAsn1Type()
Returns an ASN.1 OCTET STRING type. |
byte[] |
getByteArray()
Returns the current vbyte array alue. |
int |
getTag()
Returns the tag (0x04) for ASN.1 type OCTET STRING. |
void |
setByteArrayValue(byte[] value)
Sets the current value to the value provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASN1OctetString()
ASN1OctetString.
public ASN1OctetString(byte[] bytes)
ASN1OctetString with byte array parameter.
bytes - initialization value| Method Detail |
|---|
public byte[] getByteArray()
public int getTag()
OCTET STRING.
public void setByteArrayValue(byte[] value)
value - provided value to be set as the current value.public boolean equals(java.lang.Object object)
boolean true if the value of
the provided object is equal to the current value. Otherwise,
returns false.
equals in class java.lang.Object
public java.lang.Object accept(ValueVisitor visitor,
java.lang.Object object)
throws VisitorException
visit from the ValueVisitor
accept in class ASN1Valuevisitor - the function applicator (mapper), which knows how to
process the given object type and apply appropriate operations to
the elements of this type of objectobject - an object to be visited
VisitorExceptionpublic Type getAsn1Type()
OCTET STRING type.
getAsn1Type in class ASN1Value
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||