tuweni / org.apache.tuweni.net.tls / TrustManagerFactories

TrustManagerFactories

class TrustManagerFactories (source)

Trust manager factories for fingerprinting clients and servers.

Functions

recordClientFingerprints

Accept all client certificates, recording certificate fingerprints for those that are not CA-signed.

static fun recordClientFingerprints(knownClientsFile: Path!): TrustManagerFactory!
static fun recordClientFingerprints(repository: FingerprintRepository!): TrustManagerFactory!
static fun recordClientFingerprints(knownClientsFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory!
static fun recordClientFingerprints(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory!

Accept all client certificates, recording certificate fingerprints.

static fun recordClientFingerprints(knownClientsFile: Path!, skipCASigned: Boolean): TrustManagerFactory!
static fun recordClientFingerprints(repository: FingerprintRepository!, skipCASigned: Boolean): TrustManagerFactory!

recordServerFingerprints

Accept all server certificates, recording certificate fingerprints for those that are not CA-signed.

static fun recordServerFingerprints(knownServersFile: Path!): TrustManagerFactory!
static fun recordServerFingerprints(repository: FingerprintRepository!): TrustManagerFactory!
static fun recordServerFingerprints(knownServersFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory!
static fun recordServerFingerprints(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory!

Accept all server certificates, recording certificate fingerprints.

static fun recordServerFingerprints(knownServersFile: Path!, skipCASigned: Boolean): TrustManagerFactory!
static fun recordServerFingerprints(repository: FingerprintRepository!, skipCASigned: Boolean): TrustManagerFactory!

trustClientOnFirstAccess

Accept CA-signed client certificates, and otherwise trust client certificates on first access.

static fun trustClientOnFirstAccess(knownClientsFile: Path!): TrustManagerFactory!
static fun trustClientOnFirstAccess(repository: FingerprintRepository!): TrustManagerFactory!

Trust client certificates on first access.

static fun trustClientOnFirstAccess(knownClientsFile: Path!, acceptCASigned: Boolean): TrustManagerFactory!
static fun trustClientOnFirstAccess(repository: FingerprintRepository!, acceptCASigned: Boolean): TrustManagerFactory!

Accept CA-signed certificates, and otherwise trust client certificates on first access.

static fun trustClientOnFirstAccess(knownClientsFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory!
static fun trustClientOnFirstAccess(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory!

trustServerOnFirstUse

Accept CA-signed certificates, and otherwise trust server certificates on first use.

static fun trustServerOnFirstUse(knownServersFile: Path!): TrustManagerFactory!
static fun trustServerOnFirstUse(repository: FingerprintRepository!): TrustManagerFactory!
static fun trustServerOnFirstUse(knownServersFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory!
static fun trustServerOnFirstUse(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory!

Trust server certificates on first use.

static fun trustServerOnFirstUse(knownServersFile: Path!, acceptCASigned: Boolean): TrustManagerFactory!
static fun trustServerOnFirstUse(repository: FingerprintRepository!, acceptCASigned: Boolean): TrustManagerFactory!

whitelistClients

Require servers to present known certificates, or CA-signed certificates.

static fun whitelistClients(knownClientsFile: Path!): TrustManagerFactory!
static fun whitelistClients(repository: FingerprintRepository!): TrustManagerFactory!
static fun whitelistClients(knownClientsFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory!
static fun whitelistClients(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory!

Require clients to present known certificates.

static fun whitelistClients(knownClientsFile: Path!, acceptCASigned: Boolean): TrustManagerFactory!
static fun whitelistClients(repository: FingerprintRepository!, acceptCASigned: Boolean): TrustManagerFactory!

whitelistServers

Require servers to present known certificates, or CA-signed certificates.

static fun whitelistServers(knownServersFile: Path!): TrustManagerFactory!
static fun whitelistServers(repository: FingerprintRepository!): TrustManagerFactory!
static fun whitelistServers(knownServersFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory!
static fun whitelistServers(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory!

Require servers to present known certificates.

static fun whitelistServers(knownServersFile: Path!, acceptCASigned: Boolean): TrustManagerFactory!
static fun whitelistServers(repository: FingerprintRepository!, acceptCASigned: Boolean): TrustManagerFactory!