Interface X509CertificateSupplier

  • All Known Implementing Classes:
    URLBasedX509CertificateSupplier

    public interface X509CertificateSupplier
    An interface to provide X509 certificate for a federated client.
    • Method Detail

      • getPrivateKey

        @Deprecated
        RSAPrivateKey getPrivateKey()
        Deprecated.
        Corresponding private key of the certificate.

        You must implement this method for leaf certificates (to sign the request made to the auth service to get a security token). For intermediate certificates, you can return null.

        Returns:
        The private key
      • getCertificateAndKeyPair

        X509CertificateSupplier.CertificateAndPrivateKeyPair getCertificateAndKeyPair()
        Returns the X509 certificate and private key.

        The X509 certificate will always be valid. The private key may be null for intermediate certificates. For leaf certificates, the private key will always be valid.

        Returns:
        The certificate and private key pair.