Package org.bouncycastle.oer
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.bouncycastle.asn1.ASN1Encodableget()static OEROptional<T> Tutility method to cast value to a given type or to call that type's getInstance(Object o) method if it has one.static <T> TinthashCode()booleanorg.bouncycastle.asn1.ASN1PrimitivetoString()Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, getEncoded, getEncoded, hasEncodedTagValue
-
Field Details
-
ABSENT
-
-
Method Details
-
getInstance
-
getValue
-
getObject
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:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
isDefined
public boolean isDefined() -
toString
-
equals
- Overrides:
equalsin classorg.bouncycastle.asn1.ASN1Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.bouncycastle.asn1.ASN1Object
-