XCMS Toolkit

schemajic.model
Class DEROpenType

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1OpenType
          extended by schemajic.model.DEROpenType

public class DEROpenType
extends ASN1OpenType

Extends class ASN1OpenType to provide support for values of ASN.1 types encoded using the Distinguished Encoding Rules (DER) of ASN.1.

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

Constructor Summary
DEROpenType()
          Constructor for DEROpenType.
DEROpenType(ASN1Value decoded)
          Constructor for DEROpenType with decoded value of an ASN.1 type initialization value parameter.
DEROpenType(byte[] encoding)
          Constructor for DEROpenType sets the current DER encoding to the provided encoded value of an ASN.1 type initialization value parameter.
 
Method Summary
 boolean compareEncodingTo(ASN1ObjectIdentifier oid)
          Compare the encoding of this open type value to the encoding of the specified oid.
 byte[] getEncodedValue()
          Get the DER encoded value of an ASN.1 open type.
 java.lang.String getEncodingAsString()
          Defines how a method would get the encoded value of an open type, the value of an ASN.1 type in its encoded form, as a string.
 byte[] getRawBinaryValue()
          Get the 'value' of a TLV as binary.
 void setEncodedValue(byte[] encoding)
          Sets the DER encoded value of an ASN.1 open type.
 
Methods inherited from class schemajic.model.ASN1OpenType
accept, getAsn1Type, getDecodedValue, isDecoded, setDecodedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEROpenType

public DEROpenType()
Constructor for DEROpenType.


DEROpenType

public DEROpenType(ASN1Value decoded)
Constructor for DEROpenType with decoded value of an ASN.1 type initialization value parameter.


DEROpenType

public DEROpenType(byte[] encoding)
Constructor for DEROpenType sets the current DER encoding to the provided encoded value of an ASN.1 type initialization value parameter.

Method Detail

getEncodedValue

public byte[] getEncodedValue()
Get the DER encoded value of an ASN.1 open type.

Specified by:
getEncodedValue in class ASN1OpenType
Returns:
a byte array containing the current DER encoding

setEncodedValue

public void setEncodedValue(byte[] encoding)
Sets the DER encoded value of an ASN.1 open type.

Specified by:
setEncodedValue in class ASN1OpenType
Parameters:
encoding - a byte array

getEncodingAsString

public java.lang.String getEncodingAsString()
Description copied from class: ASN1OpenType
Defines how a method would get the encoded value of an open type, the value of an ASN.1 type in its encoded form, as a string.

Specified by:
getEncodingAsString in class ASN1OpenType

compareEncodingTo

public boolean compareEncodingTo(ASN1ObjectIdentifier oid)
                          throws java.io.IOException
Compare the encoding of this open type value to the encoding of the specified oid. If the encoded value in this open type is NOT an OBJECT IDENTIFIER, throw an illegal argument exception.

Specified by:
compareEncodingTo in class ASN1OpenType
Parameters:
oid - an ASN.1 information object identifier value
Returns:
boolean true or false
Throws:
java.io.IOException

getRawBinaryValue

public byte[] getRawBinaryValue()
                         throws DecodingException,
                                java.io.IOException
Get the 'value' of a TLV as binary. Assumes that _derEncoding != null.

Specified by:
getRawBinaryValue in class ASN1OpenType
Returns:
a byte[]
Throws:
DecodingException
java.io.IOException

XCMS Toolkit


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