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

public Class MonetaryValue

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

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

Field Summary

Modifier and TypeField and Description
private ASN1Integer
private Iso4217CurrencyCode
private ASN1Integer

Constructor Summary

AccessConstructor and Description
private
public
MonetaryValue(Iso4217CurrencyCode currency, int amount, int exponent)

Method Summary

Modifier and TypeMethod and Description
public BigInteger
public Iso4217CurrencyCode
public BigInteger
public static MonetaryValue
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

amountback to summary
private ASN1Integer amount
currencyback to summary
private Iso4217CurrencyCode currency
exponentback to summary
private ASN1Integer exponent

Constructor Detail

MonetaryValueback to summary
private MonetaryValue(ASN1Sequence seq)
MonetaryValueback to summary
public MonetaryValue(Iso4217CurrencyCode currency, int amount, int exponent)

Method Detail

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

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.