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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
org.bouncycastle.asn1.ASN1Encodable
get()
static OEROptional
<T> T
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
int
hashCode()
boolean
org.bouncycastle.asn1.ASN1Primitive
toString()
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:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-
isDefined
public boolean isDefined() -
toString
-
equals
- Overrides:
equals
in classorg.bouncycastle.asn1.ASN1Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.bouncycastle.asn1.ASN1Object
-