Class MonetaryLimit
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.isismtt.x509.MonetaryLimit
- All Implemented Interfaces:
ASN1Encodable
,Encodable
Monetary limit for transactions. The QcEuMonetaryLimit QC statement MUST be
used in new certificates in place of the extension/attribute MonetaryLimit
since January 1, 2004. For the sake of backward compatibility with
certificates already in use, components SHOULD support MonetaryLimit (as well
as QcEuLimitValue).
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 Summary
ConstructorsConstructorDescriptionMonetaryLimit
(String currency, int amount, int exponent) Constructor from a given details. -
Method Summary
Modifier and TypeMethodDescriptionstatic MonetaryLimit
getInstance
(Object obj) Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
MonetaryLimit
Constructor from a given details.value = amount?10^exponent
- Parameters:
currency
- The currency. Must be the ISO code.amount
- The amountexponent
- The exponent
-
-
Method Details
-
getInstance
-
getCurrency
-
getAmount
-
getExponent
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.Returns:
MonetaryLimitSyntax ::= SEQUENCE { currency PrintableString (SIZE(3)), amount INTEGER, exponent INTEGER }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a DERObject
-