If the entry for the indicated alias in the keystore is of key type, the key can be obtained through the function.

1 java.security.KeyStore.getKey

<java.security.KeyStore.getKey
    name='name'
    password='password'
>
    <keystore /> ?
</java.security.KeyStore.getKey>