Interface OpenIdConnectTokenPKIProvider

    • Method Detail

      • getProviderPrivateKey

        PrivateKey getProviderPrivateKey​(String keyAlias,
                                         String keyPassword)
                                  throws TokenCreationException
        Get the OpenIdConnect Provider's PrivateKey. Used to sign the OpenIdConnect token.
        Parameters:
        keyAlias - alias identifying the KeyStore PrivateKeyEntry
        keyPassword - password for the PrivateKeyEntry
        Returns:
        the non-null PrivateKey corresponding to this entry.
        Throws:
        TokenCreationException - if a PrivateKey entry could not be found
      • getProviderCertificateChain

        X509Certificate[] getProviderCertificateChain​(String keyAlias)
                                               throws TokenCreationException
        Get the OpenIdConnect Provider's X509Certificate[] corresponding to their PrivateKeyEntry. Used to create the reference to the X509Certificate state corresponding to the OP's private key, as documented here: https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41#section-4.1
        Parameters:
        keyAlias - alias identifying the PrivateKeyEntry
        Returns:
        the non-null X509Certificate[] corresponding to this entry, as returned from the underlying KeyStore. The leaf cert will be the first entry.
        Throws:
        TokenCreationException - if an entry could not be found