XCMS Toolkit

schemajic.model
Class ASN1Sequence

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1Sequence
Direct Known Subclasses:
Attribute, AuthenticatedData, CertHash, CFBParameters, ContentEncryptionAlgorithmIdentifier, DigestAlgorithmIdentifier, DigestedData, DigestInfo, ECC_CMS_SharedInfo, ECDSA_Sig_Value, ECKeyCommitment, EncapsulatedContentInfo, EncryptedContentInfo, EncryptedData, EnvelopedData, HashAlgorithm, KEKIdentifier, KEKRecipientInfo, KeyAgreeRecipientInfo, KeyEncryptionAlgorithmIdentifier, KeyTransRecipientInfo, MaskGenAlgorithm, MessageAuthenticationCodeAlgorithm, MQVuserKeyingMaterial, NamedKeyEncryptedData, OriginatorInfo, OriginatorPublicKey, OtherKeyAttribute, PSourceAlgorithm, PublicKeyAlgorithmIdentifier, RecipientEncryptedKey, RecipientKeyIdentifier, RecipientKeyIdHash, RSAES_AlgorithmIdentifier, RSAES_OAEP_params, SignatureAlgorithmIdentifier, SignedData, SignerInfo

public abstract class ASN1Sequence
extends ASN1Value

Models the abstract concept of a value of an ASN.1 SEQUENCE type.

Type SEQUENCE is a complex builtin type that consists of an ordered series of components.

Universal class tag assignment is UNIVERSAL 16, the same tag value used for ASN.1 type SEQUENCE OF.

XML ASN.1 type name is SEQUENCE.

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

Field Summary
protected  ASN1Value[] _fields
           
 
Constructor Summary
ASN1Sequence()
          Constructor for ASN1Sequence sets current ASN.1 value fields to null.
ASN1Sequence(boolean[] present)
          Constructor for ASN1Sequence sets the current ASN.1 OPTIONAL component existence indicator to the provided boolean value.
ASN1Sequence(int fieldCount)
          Constructor for ASN1Sequence sets current ASN.1 value fields to the provided integer number of fields value.
 
Method Summary
 java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Accepts a visit from the ValueVisitor
 Type getAsn1Type()
          Returns an ASN.1 SEQUENCE type.
 ASN1Value getDefaultValue(int i)
           
 ASN1Value[] getFields()
          Returns a copy of the internal field array.
 void setAbsent(int index)
          TODO: Need description here
 void setFields(ASN1Value[] f)
          Copies the elements in f to the internal field array.
 void setPresent(int index)
          TODO: Need description here
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fields

protected ASN1Value[] _fields
Constructor Detail

ASN1Sequence

public ASN1Sequence()
Constructor for ASN1Sequence sets current ASN.1 value fields to null.


ASN1Sequence

public ASN1Sequence(int fieldCount)
Constructor for ASN1Sequence sets current ASN.1 value fields to the provided integer number of fields value.

Parameters:
fieldCount - ASN.1 value field count

ASN1Sequence

public ASN1Sequence(boolean[] present)
Constructor for ASN1Sequence sets the current ASN.1 OPTIONAL component existence indicator to the provided boolean value.

Parameters:
present - ASN.1 OPTIONAL component existence indicator
Method Detail

setAbsent

public void setAbsent(int index)
TODO: Need description here

Parameters:
index -

setPresent

public void setPresent(int index)
TODO: Need description here

Parameters:
index -

getFields

public ASN1Value[] getFields()
Returns a copy of the internal field array.


setFields

public void setFields(ASN1Value[] f)
Copies the elements in f to the internal field array.


getDefaultValue

public ASN1Value getDefaultValue(int i)

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 SEQUENCE type.

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


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