Interface X509JWKBuilder<A extends PublicKey,B extends PrivateKey,C extends X509JWK<A,B>,D extends X509JWKBuilder<A,B,C,D>>

Type Parameters:
A - the public key type
B - the private key type
C - the X.509 JWK type
D - the X.509 JWK builder type
All Superinterfaces:
JWKBuilder<C,D>
All Known Subinterfaces:
ECJWKBuilder<A,B>, EdECJWKBuilder<A,B>, OKPJWKBuilder<A,B,C,D>, RSAJWKBuilder<A,B>, XECJWKBuilder<A,B>

public interface X509JWKBuilder<A extends PublicKey,B extends PrivateKey,C extends X509JWK<A,B>,D extends X509JWKBuilder<A,B,C,D>> extends JWKBuilder<C,D>

An X.509 JWK builder is used to build X.509 asymmetric JSON Web Keys that support X.509 JOSE header parameters: x5u, x5c, x5t and x5t#S256.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • x509CertificateURL

      D x509CertificateURL(URI x5u)

      Specifies the X.509 certificate or certificates chain URL.

      Parameters:
      x5u - the X.509 certificate or certificate chain URL
      Returns:
      this builder
    • x509CertificateChain

      D x509CertificateChain(String[] x5c)

      specifies the X.509 certificates chain.

      Parameters:
      x5c - the X.509 certificates chain
      Returns:
      this builder
    • x509CertificateSHA1Thumbprint

      D x509CertificateSHA1Thumbprint(String x5t)

      Specifies the X.509 certificate SHA1 thumbprint.

      Parameters:
      x5t - the X.509 certificate SHA1 thumbprint
      Returns:
      this builder
    • x509CertificateSHA256Thumbprint

      D x509CertificateSHA256Thumbprint(String x5t_S256)

      Specifies the X.509 certificate SHA256 thumbprint.

      Parameters:
      x5t_S256 - the X.509 certificate SHA256 thumbprint
      Returns:
      this builder