codec.asn1
Interface Constraint

All Known Implementing Classes:
ConstraintCollection

public interface Constraint

This interface specifies a constraint of some ASN.1 type. Constraints are called to check the validity of a type right after initialization and after decoding. For instance an OCTET STRING may be defined to be at most 8 octets long. This may be implemented by adding a constraint to an ASN1OctetString instance that verifies the length of the octets string.

Version:
"$Id: Constraint.java,v 1.2 2000/12/06 17:47:28 vroth Exp $"
Author:
Volker Roth

Method Summary
 void constrain(ASN1Type o)
           
 

Method Detail

constrain

public void constrain(ASN1Type o)
               throws ConstraintException


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.