Class OEROptional

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class OEROptional
    extends org.bouncycastle.asn1.ASN1Object
    A placeholder object that represents an absent item.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      org.bouncycastle.asn1.ASN1Encodable get()  
      static OEROptional getInstance​(java.lang.Object o)  
      <T> T getObject​(java.lang.Class<T> type)
      utility method to cast value to a given type or to call that type's getInstance(Object o) method if it has one.
      static <T> T getValue​(java.lang.Class<T> type, java.lang.Object src)  
      int hashCode()  
      boolean isDefined()  
      org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()  
      java.lang.String toString()  
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, getEncoded, getEncoded, hasEncodedTagValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getInstance

        public static OEROptional getInstance​(java.lang.Object o)
      • getValue

        public static <T> T getValue​(java.lang.Class<T> type,
                                     java.lang.Object src)
      • getObject

        public <T> T getObject​(java.lang.Class<T> type)
        utility method to cast value to a given type or to call that type's getInstance(Object o) method if it has one.
        Type Parameters:
        T - The type.
        Parameters:
        type - The target type.
        Returns:
        An instance of that type.
      • get

        public org.bouncycastle.asn1.ASN1Encodable get()
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      • isDefined

        public boolean isDefined()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class org.bouncycastle.asn1.ASN1Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.bouncycastle.asn1.ASN1Object