public class DERBMPString extends ASN1Primitive implements ASN1String
At ISO-10646:2011 the term "BMP" has been withdrawn, and replaced by term "UCS-2".
Constructor and Description |
---|
DERBMPString(String string)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
asn1Equals(ASN1Primitive o)
Equality (similarity) comparison for two ASN1Primitive objects.
|
static DERBMPString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return a BMP String from a tagged object.
|
static DERBMPString |
getInstance(Object obj)
Return a BMP String from the given object.
|
String |
getString()
Return a Java String representation of this STRING type's content.
|
int |
hashCode() |
String |
toString() |
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
public DERBMPString(String string)
string
- a String to wrap as a BMP STRING.public static DERBMPString getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public static DERBMPString getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we wantexplicit
- true if the object is meant to be explicitly
tagged false otherwise.IllegalArgumentException
- if the tagged object cannot
be converted.public String getString()
ASN1String
getString
in interface ASN1String
public int hashCode()
hashCode
in class ASN1Primitive
protected boolean asn1Equals(ASN1Primitive o)
ASN1Primitive
Copyright © 2020 BouncyCastle.org. All rights reserved.