public class MonetaryLimit extends ASN1Object
Indicates a monetary limit within which the certificate holder is authorized to act. (This value DOES NOT express a limit on the liability of the certification authority).
MonetaryLimitSyntax ::= SEQUENCE { currency PrintableString (SIZE(3)), amount INTEGER, exponent INTEGER }
currency must be the ISO code.
value = amount�10*exponent
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) |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public MonetaryLimit(String currency, int amount, int exponent)
value = amount�10^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 ASN1Primitive toASN1Primitive()
Returns:
MonetaryLimitSyntax ::= SEQUENCE { currency PrintableString (SIZE(3)), amount INTEGER, exponent INTEGER }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
Copyright © 2017 BouncyCastle.org. All rights reserved.