pasn.encoding.cer
Class CERValueChecker

java.lang.Object
  extended by pasn.encoding.cer.CERValueChecker
All Implemented Interfaces:
ASN1ValueChecker

public final class CERValueChecker
extends java.lang.Object
implements ASN1ValueChecker

Primarily designed for CONSTRUCTED BIT STRING and OCTET STRING CER decoding

Author:
ncottin

Constructor Summary
CERValueChecker()
           
 
Method Summary
 void check(ASN1PrimitiveOrConstructedObject asn, boolean last)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CERValueChecker

public CERValueChecker()
Method Detail

check

public void check(ASN1PrimitiveOrConstructedObject asn,
                  boolean last)
           throws ASN1ConstraintException
Specified by:
check in interface ASN1ValueChecker
Parameters:
asn -
last - Indicates that asn is the last part of the CONSTRUCTED form of the corresponding PRIMITIVER or CONSTRUCTED object
Throws:
ASN1ConstraintException - Raised either shen last is true and asn decoded value length exceeds 1000 or when last is false and asn decoded value length does not equal 1000. Also raised if asn is null