Class Restriction

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.isismtt.x509.Restriction
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class Restriction extends org.bouncycastle.asn1.ASN1Object
Some other restriction regarding the usage of this certificate.
  RestrictionSyntax ::= DirectoryString (SIZE(1..1024))
 
  • Constructor Summary

    Constructors
    Constructor
    Description
    Restriction(String restriction)
    Constructor from a given details.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.bouncycastle.asn1.x500.DirectoryString
     
    org.bouncycastle.asn1.ASN1Primitive
    Produce an object suitable for an ASN1OutputStream.

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Restriction

      public Restriction(String restriction)
      Constructor from a given details.
      Parameters:
      restriction - The describtion of the restriction.
  • Method Details

    • getInstance

      public static Restriction getInstance(Object obj)
    • getRestriction

      public org.bouncycastle.asn1.x500.DirectoryString getRestriction()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Produce an object suitable for an ASN1OutputStream.

      Returns:

            RestrictionSyntax ::= DirectoryString (SIZE(1..1024))
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      Returns:
      a DERObject