]
David Lloyd updated ELY-373:
----------------------------
Fix Version/s: 1.1.0.Beta2
(was: 1.1.0.Beta3)
General peer verification callback
----------------------------------
Key: ELY-373
URL:
https://issues.jboss.org/browse/ELY-373
Project: WildFly Elytron
Issue Type: Task
Components: Callbacks
Reporter: David Lloyd
Assignee: David Lloyd
Fix For: 1.1.0.Beta2
We need to generalize peer verification. Right now the peer verification callback
({{org.wildfly.security.auth.callback.VerifyPeerTrustedCallback}}) is specific to X.509
certificate chains, but other mechanisms might use different peer credentials for the
verification.
An ideal API might use an optional Principal and an optional Credential. For Entity, a
{{org.wildfly.security.credential.X509CertificateChainPublicCredential}} might be used for
the Credential, and the Principal would be extracted from that. For key-based
authentication, the principal could be the NamePrincipal of the host name and the
credential would be a PublicKeyCredential.