public class MonetaryLimit extends ASN1Encodable
MonetaryLimitSyntax ::= SEQUENCE
{
currency PrintableString (SIZE(3)),
amount INTEGER,
exponent INTEGER
}
currency must be the ISO code.
value = amount�10*exponentBER, DER| Constructor and Description |
|---|
MonetaryLimit(String currency,
int amount,
int exponent)
Constructor from a given details.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getAmount() |
String |
getCurrency() |
BigInteger |
getExponent() |
static MonetaryLimit |
getInstance(Object obj) |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodepublic MonetaryLimit(String currency, int amount, int exponent)
currency - The currency. Must be the ISO code.amount - The amountexponent - The exponentpublic static MonetaryLimit getInstance(Object obj)
public String getCurrency()
public BigInteger getAmount()
public BigInteger getExponent()
public DERObject toASN1Object()
MonetaryLimitSyntax ::= SEQUENCE
{
currency PrintableString (SIZE(3)),
amount INTEGER,
exponent INTEGER
}
toASN1Object in class ASN1EncodableCopyright © 2015. All rights reserved.