public class DERVideotexString extends ASN1Primitive implements ASN1String
Constructor and Description |
---|
DERVideotexString(byte[] string)
basic constructor - with bytes.
|
Modifier and Type | Method and Description |
---|---|
static DERVideotexString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a Videotex String from a tagged object.
|
static DERVideotexString |
getInstance(Object obj)
return a Videotex String from the passed in object
|
byte[] |
getOctets() |
String |
getString()
Return a Java String representation of this STRING type's content.
|
int |
hashCode() |
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
public DERVideotexString(byte[] string)
string
- the byte encoding of the characters making up the string.public static DERVideotexString getInstance(Object obj)
obj
- a DERVideotexString or an object that can be converted into one.IllegalArgumentException
- if the object cannot be converted.public static DERVideotexString 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 byte[] getOctets()
public int hashCode()
hashCode
in class ASN1Primitive
public String getString()
ASN1String
getString
in interface ASN1String
Copyright © 2017 BouncyCastle.org. All rights reserved.