Top Description Fields Constructors Methods
org.bouncycastle.asn1.isismtt.x509

public Class MonetaryLimit

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1PrintableString, .ASN1Sequence, .DERPrintableString, .DERSequence

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

Field Summary

Modifier and TypeField and Description
pack-priv ASN1Integer
pack-priv ASN1PrintableString
pack-priv ASN1Integer

Constructor Summary

AccessConstructor and Description
private
public
MonetaryLimit(String
The currency. Must be the ISO code.
currency
,
int
The amount
amount
,
int
The exponent
exponent
)

Constructor from a given details.

Method Summary

Modifier and TypeMethod and Description
public BigInteger
public String
public BigInteger
public static MonetaryLimit
public ASN1Primitive

Returns:

a DERObject
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

amountback to summary
pack-priv ASN1Integer amount
currencyback to summary
pack-priv ASN1PrintableString currency
exponentback to summary
pack-priv ASN1Integer exponent

Constructor Detail

MonetaryLimitback to summary
private MonetaryLimit(ASN1Sequence seq)
MonetaryLimitback to summary
public MonetaryLimit(String currency, int amount, int exponent)

Constructor from a given details.

value = amount�10^exponent

Parameters
currency:String

The currency. Must be the ISO code.

amount:int

The amount

exponent:int

The exponent

Method Detail

getAmountback to summary
public BigInteger getAmount()
getCurrencyback to summary
public String getCurrency()
getExponentback to summary
public BigInteger getExponent()
getInstanceback to summary
public static MonetaryLimit getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:

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

a DERObject