org.bouncycastle.asn1.isismtt.x509
Class Restriction

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.isismtt.x509.Restriction
All Implemented Interfaces:
DEREncodable

public class Restriction
extends ASN1Encodable

Some other restriction regarding the usage of this certificate.

  RestrictionSyntax ::= DirectoryString (SIZE(1..1024))
 


Field Summary
private  DirectoryString restriction
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
private Restriction(DirectoryString restriction)
          Constructor from DERString.
  Restriction(java.lang.String restriction)
          Constructor from a given details.
 
Method Summary
static Restriction getInstance(java.lang.Object obj)
           
 DirectoryString getRestriction()
           
 DERObject toASN1Object()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restriction

private DirectoryString restriction
Constructor Detail

Restriction

private Restriction(DirectoryString restriction)
Constructor from DERString.

The DERString is of type RestrictionSyntax:

      RestrictionSyntax ::= DirectoryString (SIZE(1..1024))
 

Parameters:
restriction - A DERString.

Restriction

public Restriction(java.lang.String restriction)
Constructor from a given details.

Parameters:
restriction - The describtion of the restriction.
Method Detail

getInstance

public static Restriction getInstance(java.lang.Object obj)

getRestriction

public DirectoryString getRestriction()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Returns:

      RestrictionSyntax ::= DirectoryString (SIZE(1..1024))
 

Specified by:
toASN1Object in class ASN1Encodable
Returns:
a DERObject