XCMS Toolkit

schemajic.model
Class ASN1OctetString

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1OctetString
Direct Known Subclasses:
AES_IV, Data, Digest, ECPoint, EncodingParameters, EncryptedContent, EncryptedKey, MessageAuthenticationCode, MessageDigest, SignatureValue, SubjectKeyIdentifier, UserKeyingMaterial, XEROctetString

public class ASN1OctetString
extends ASN1Value

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.

Version:
1.00 - 2006/02/09
Author:
support@phillipgriffin.com

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

ASN1OctetString

public ASN1OctetString()
Constructor for ASN1OctetString.


ASN1OctetString

public ASN1OctetString(byte[] bytes)
Constructor for ASN1OctetString with byte array parameter.

Parameters:
bytes - initialization value
Method Detail

getByteArray

public byte[] getByteArray()
Returns the current vbyte array alue.


getTag

public int getTag()
Returns the tag (0x04) for ASN.1 type OCTET STRING.


setByteArrayValue

public void setByteArrayValue(byte[] value)
Sets the current value to the value provided.

Parameters:
value - provided value to be set as the current value.

equals

public boolean equals(java.lang.Object object)
Returns boolean true if the value of the provided object is equal to the current value. Otherwise, returns false.

Overrides:
equals in class java.lang.Object

accept

public java.lang.Object accept(ValueVisitor visitor,
                               java.lang.Object object)
                        throws VisitorException
Accepts a visit from the ValueVisitor

Specified by:
accept in class ASN1Value
Parameters:
visitor - the function applicator (mapper), which knows how to process the given object type and apply appropriate operations to the elements of this type of object
object - an object to be visited
Returns:
a visit to the provided object
Throws:
VisitorException

getAsn1Type

public Type getAsn1Type()
Returns an ASN.1 OCTET STRING type.

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.