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>

PartyAndCertificate(certPath: CertPath)

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.

Properties

certPath

val certPath: CertPath

certificate

val certificate: X509Certificate

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

fun verify(trustAnchor: TrustAnchor): PKIXCertPathValidatorResult

Verify the certificate path is valid.

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

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

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.