Interface KeyStoreKeyIdProvider


  • @EvolvingAll
    public interface KeyStoreKeyIdProvider
    This interface allows customization of the key ID values associated with public keys stored in KeyStoreSecretStores.
    Since:
    AM 7.0.0
    • Method Detail

      • getKeyId

        String getKeyId​(String keyUse,
                        String alias,
                        PublicKey publicKey,
                        Optional<Certificate> certificate)
        Determine the key ID for the provided public key. The key ID value should be calculated consistently, that is: for the same key use, internal ID, public key combination this method should always return the same value.
        Parameters:
        keyUse - Whether the key in question is used for signing or encryption.
        alias - The keystore alias for this key.
        publicKey - The public key.
        certificate - The public certificate.
        Returns:
        The key ID of the provided public key.