corda / net.corda.core.identity / PartyAndCertificate

PartyAndCertificate

class PartyAndCertificate

A full party plus the X.509 certificate and path linking the party back to a trust root. Equality of PartyAndCertificate instances is based on the party only, as certificate and path are data associated with the party, not part of the identifier themselves.

Constructors

<init>

A full party plus the X.509 certificate and path linking the party back to a trust root. Equality of PartyAndCertificate instances is based on the party only, as certificate and path are data associated with the party, not part of the identifier themselves.

PartyAndCertificate(certPath: CertPath)

Properties

certificate

val certificate: X509Certificate

certPath

val certPath: CertPath

name

val name: CordaX500Name

owningKey

val owningKey: PublicKey

party

val party: Party

Functions

component1

operator fun component1(): Party

component2

operator fun component2(): X509Certificate

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

verify

Verify the certificate path is valid.

fun verify(trustAnchor: TrustAnchor): PKIXCertPathValidatorResult

Verify the certificate path is valid against one of the specified trust anchors.

fun verify(trustAnchors: Set<TrustAnchor>): PKIXCertPathValidatorResult