Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.bouncycastle.asn1.cms;
  
RFC 5652: OtherRevocationInfoFormat object.

 OtherRevocationInfoFormat ::= SEQUENCE {
      otherRevInfoFormat OBJECT IDENTIFIER,
      otherRevInfo ANY DEFINED BY otherRevInfoFormat }
 
 
     extends ASN1Object
 {
     private ASN1Encodable otherRevInfo;
 
     public OtherRevocationInfoFormat(
         ASN1ObjectIdentifier otherRevInfoFormat,
         ASN1Encodable otherRevInfo)
     {
         this. = otherRevInfoFormat;
         this. = otherRevInfo;
     }
 
     private OtherRevocationInfoFormat(
         ASN1Sequence seq)
     {
          = ASN1ObjectIdentifier.getInstance(seq.getObjectAt(0));
          = seq.getObjectAt(1);
     }

    
Return a OtherRevocationInfoFormat object from a tagged object.

Parameters:
obj the tagged object holding the object we want.
explicit true if the object is meant to be explicitly tagged false otherwise.
Throws:
java.lang.IllegalArgumentException if the object held by the tagged object cannot be converted.
 
     public static OtherRevocationInfoFormat getInstance(
         ASN1TaggedObject    obj,
         boolean             explicit)
     {
         return getInstance(ASN1Sequence.getInstance(objexplicit));
     }
    
    
Return a OtherRevocationInfoFormat object from the given object.

Accepted inputs:

  • null → null
  • OtherRevocationInfoFormat object
  • ASN1Sequence input formats with OtherRevocationInfoFormat structure inside

Parameters:
obj the object we want converted.
Throws:
java.lang.IllegalArgumentException if the object cannot be converted.
 
     public static OtherRevocationInfoFormat getInstance(
         Object obj)
     {
         if (obj instanceof OtherRevocationInfoFormat)
         {
             return (OtherRevocationInfoFormat)obj;
         }
         
         if (obj != null)
         {
             return new OtherRevocationInfoFormat(ASN1Sequence.getInstance(obj));
         }
         
         return null;
     }
 
     {
         return ;
     }
 
     public ASN1Encodable getInfo()
     {
         return ;
     }

    
Produce an object suitable for an ASN1OutputStream.
 
    {
        ASN1EncodableVector  v = new ASN1EncodableVector();
        v.add();
        v.add();
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X