Top Description Fields Constructors Methods
org.bouncycastle.asn1.bc

public Class ExternalValue

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1BitString, .ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DERBitString, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .GeneralName, .GeneralNames, org.bouncycastle.util.Arrays

Based on External Keys And Signatures For Use In Internet PKI draft-ounsworth-pq-external-pubkeys-00
 ExternalValue ::= SEQUENCE {
     location GeneralNames,    # MUST refer to a DER encoded SubjectPublicKeyInfo/Signature  (may be Base64)
     hashAlg AlgorithmIdentifier,
     hashVal OCTET STRING }

Field Summary

Modifier and TypeField and Description
private final AlgorithmIdentifier
private final byte[]
private final GeneralNames

Constructor Summary

AccessConstructor and Description
public
ExternalValue(GeneralName location, AlgorithmIdentifier hashAlg, byte[] hashVal)

private

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public ASN1BitString

Returns:

the hash value as a BIT STRING
getHashVal
()

Deprecated use getHash(), the internal encoding is now an OCTET STRING
Get the hash value as a BIT STRING.
public byte[]
public static ExternalValue
public GeneralName
public GeneralName[]
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

hashAlgback to summary
private final AlgorithmIdentifier hashAlg
hashValueback to summary
private final byte[] hashValue
locationback to summary
private final GeneralNames location

Constructor Detail

ExternalValueback to summary
public ExternalValue(GeneralName location, AlgorithmIdentifier hashAlg, byte[] hashVal)
ExternalValueback to summary
private ExternalValue(ASN1Sequence seq)

Method Detail

getHashAlgback to summary
public AlgorithmIdentifier getHashAlg()
getHashValback to summary
public ASN1BitString getHashVal()

Deprecated

use getHash(), the internal encoding is now an OCTET STRING

Get the hash value as a BIT STRING.

Returns:ASN1BitString

the hash value as a BIT STRING

getHashValueback to summary
public byte[] getHashValue()
getInstanceback to summary
public static ExternalValue getInstance(Object o)
getLocationback to summary
public GeneralName getLocation()
getLocationsback to summary
public GeneralName[] getLocations()
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.