org.bouncycastle.asn1.x509.qualified

Class MonetaryValue

Implemented Interfaces:
DEREncodable

public class MonetaryValue
extends ASN1Encodable

The MonetaryValue object.
 MonetaryValue  ::=  SEQUENCE {
       currency              Iso4217CurrencyCode,
       amount               INTEGER, 
       exponent             INTEGER }
 -- value = amount * 10^exponent
 

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

MonetaryValue(ASN1Sequence seq)
MonetaryValue(Iso4217CurrencyCode currency, int amount, int exponent)

Method Summary

BigInteger
getAmount()
Iso4217CurrencyCode
getCurrency()
BigInteger
getExponent()
static MonetaryValue
getInstance(Object obj)
DERObject
toASN1Object()

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

MonetaryValue

public MonetaryValue(ASN1Sequence seq)

MonetaryValue

public MonetaryValue(Iso4217CurrencyCode currency,
                     int amount,
                     int exponent)

Method Details

getAmount

public BigInteger getAmount()

getCurrency

public Iso4217CurrencyCode getCurrency()

getExponent

public BigInteger getExponent()

getInstance

public static MonetaryValue getInstance(Object obj)

toASN1Object

public DERObject toASN1Object()
Overrides:
toASN1Object in interface ASN1Encodable