public class

MonetaryLimit

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.isismtt.x509.MonetaryLimit

Class Overview

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

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
MonetaryLimit(String currency, int amount, int exponent)
Constructor from a given details.
Public Methods
BigInteger getAmount()
String getCurrency()
BigInteger getExponent()
static MonetaryLimit getInstance(Object obj)
DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public MonetaryLimit (String currency, int amount, int exponent)

Constructor from a given details.

value = amount�10^exponent

Parameters
currency The currency. Must be the ISO code.
amount The amount
exponent The exponent

Public Methods

public BigInteger getAmount ()

public String getCurrency ()

public BigInteger getExponent ()

public static MonetaryLimit getInstance (Object obj)

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream.

Returns:

    MonetaryLimitSyntax ::= SEQUENCE
    {
      currency PrintableString (SIZE(3)),
      amount INTEGER,
      exponent INTEGER
    }
 

Returns
  • a DERObject