Package org.apache.polaris.service.auth
Class LocalRSAKeyProvider
java.lang.Object
org.apache.polaris.service.auth.LocalRSAKeyProvider
- All Implemented Interfaces:
KeyProvider
Holds a public / private key pair in memory.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalRSAKeyProvider(KeyPair keyPair) LocalRSAKeyProvider(PublicKey publicKey, PrivateKey privateKey) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalRSAKeyProviderGetter for the Private Key instance.Getter for the Public Key instance
-
Constructor Details
-
LocalRSAKeyProvider
-
LocalRSAKeyProvider
-
-
Method Details
-
fromFiles
public static LocalRSAKeyProvider fromFiles(@Nonnull Path publicKeyFile, @Nonnull Path privateKeyFile) -
getPublicKey
Getter for the Public Key instance- Specified by:
getPublicKeyin interfaceKeyProvider- Returns:
- the Public Key instance
-
getPrivateKey
Getter for the Private Key instance. Used to sign the content on the JWT signing stage.- Specified by:
getPrivateKeyin interfaceKeyProvider- Returns:
- the Private Key instance
-