Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.asn1.x509
Class RelatedCertificate

    java.lang.Object
      org.bouncycastle.asn1.ASN1Object
          org.bouncycastle.asn1.x509.RelatedCertificate

All Implemented Interfaces:
  ASN1Encodable, Encodable

public class RelatedCertificate
extends ASN1Object

RFC 9763 sec. 3 certificate extension value. RelatedCertificate ::= SEQUENCE { hashAlgorithm DigestAlgorithmIdentifier, hashValue OCTET STRING } The is the digest of the DER-encoded structure (TBSCertificate + signatureAlgorithm + signatureValue) of the single related end-entity certificate listed in the matching attribute of the CSR that produced this certificate (RFC 9763 sec. 3.2).

Identified by `X509ObjectIdentifiers.id_pe_relatedCert` / `Extension.relatedCertificate` (OID 1.3.6.1.5.5.7.1.36). RFC 9763 sec. 3.1 says the extension SHOULD NOT be marked critical.

Constructor Summary
`RelatedCertificate(AlgorithmIdentifier hashAlgorithm, ASN1OctetString hashValue)`

Method Summary
`AlgorithmIdentifier` | `getHashAlgorithm()`
`ASN1OctetString` | `getHashValue()`
`static RelatedCertificate` | `getInstance(java.lang.Object obj)`
`ASN1Primitive` | `toASN1Primitive()` Method providing a primitive representation of this object suitable for encoding.

Methods inherited from class org.bouncycastle.asn1.ASN1Object
`encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RelatedCertificate

    public RelatedCertificate(AlgorithmIdentifier hashAlgorithm,
                              ASN1OctetString hashValue)

Method Detail

### getInstance

    public static RelatedCertificate getInstance(java.lang.Object obj)

### getHashAlgorithm

    public AlgorithmIdentifier getHashAlgorithm()

### getHashValue

    public ASN1OctetString getHashValue()

### toASN1Primitive

    public ASN1Primitive toASN1Primitive()

  Description copied from class: `ASN1Object`
  Method providing a primitive representation of this object suitable for encoding.

  Specified by:
    `toASN1Primitive` in interface `ASN1Encodable`
  Specified by:
    `toASN1Primitive` in class `ASN1Object`
  Returns:
    a primitive representation of this object.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD