Interface OpenIdConnectTokenPKIProvider
-
- All Known Implementing Classes:
FauxOpenIdConnectTokenPKIProvider,OpenIdConnectTokenPKIProviderImpl
public interface OpenIdConnectTokenPKIProviderDefines the concerns related to the signing of OpenIdConnect tokens
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description X509Certificate[]getProviderCertificateChain(String keyAlias)Get the OpenIdConnect Provider's X509Certificate[] corresponding to their PrivateKeyEntry.PrivateKeygetProviderPrivateKey(String keyAlias, String keyPassword)Get the OpenIdConnect Provider's PrivateKey.
-
-
-
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 PrivateKeyEntrykeyPassword- 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
-
-