| java.lang.Object org.bouncycastle.asn1.ASN1Encodable org.bouncycastle.asn1.DERObject org.bouncycastle.asn1.ASN1Object org.bouncycastle.asn1.DERNumericString
DERNumericString | public class DERNumericString extends ASN1Object implements DERString(Code) | | DER NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }.
|
DERNumericString | public DERNumericString(byte[] string)(Code) | | basic constructor - with bytes.
|
DERNumericString | public DERNumericString(String string)(Code) | | basic constructor - without validation..
|
DERNumericString | public DERNumericString(String string, boolean validate)(Code) | | Constructor with optional validation.
Parameters: string - the base string to wrap. Parameters: validate - whether or not to check the string. throws: IllegalArgumentException - if validate is true and the stringcontains characters that should not be in a NumericString. |
getInstance | public static DERNumericString getInstance(ASN1TaggedObject obj, boolean explicit)(Code) | | return an Numeric String from a tagged object.
Parameters: obj - the tagged object holding the object we want Parameters: explicit - true if the object is meant to be explicitlytagged false otherwise. exception: IllegalArgumentException - if the tagged object cannotbe converted. |
getOctets | public byte[] getOctets()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isNumericString | public static boolean isNumericString(String str)(Code) | | Return true if the string can be represented as a NumericString ('0'..'9', ' ')
Parameters: str - string to validate. true if numeric, fale otherwise. |
|
|