Class OEROptional

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.oer.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.
  • Field Details

  • Method Details

    • getInstance

      public static OEROptional getInstance(Object o)
    • getValue

      public static <T> T getValue(Class<T> type, Object src)
    • getObject

      public <T> T getObject(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 String toString()
      Overrides:
      toString in class Object
    • equals

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

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