Top Fields Constructors Methods
com.oracle.bmc.http.signing.internal

pack-priv Class PEMStreamRSAPrivateKeySupplier

extends Object
implements KeySupplier<RSAPrivateKey>
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.http.signing.internal.KeySupplier
Imports
com.oracle.bmc.http.client.pki.Pem, .PemEncryptionException, .PemException, jakarta.annotation.Nonnull, .Nullable, java.io.IOException, .InputStream, java.nio.channels.Channels, .ReadableByteChannel, java.security.PrivateKey, java.security.interfaces.RSAPrivateKey, java.util.Optional

Field Summary

Modifier and TypeField and Description
private final Optional<RSAPrivateKey>

Constructor Summary

AccessConstructor and Description
public
PEMStreamRSAPrivateKeySupplier(final InputStream inputStream, final char[] passphrase)

Method Summary

Modifier and TypeMethod and Description
public Optional<RSAPrivateKey>
supplyKey(String
the identifier of the key to try to supply
keyId
)

Implements com.oracle.bmc.http.signing.internal.KeySupplier.supplyKey.

Try to get a key for the given KeyId

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

privateKeyback to summary
private final Optional<RSAPrivateKey> privateKey

Constructor Detail

PEMStreamRSAPrivateKeySupplierback to summary
public PEMStreamRSAPrivateKeySupplier(final InputStream inputStream, final char[] passphrase) throws IOException

Method Detail

supplyKeyback to summary
public Optional<RSAPrivateKey> supplyKey(String keyId)

Implements com.oracle.bmc.http.signing.internal.KeySupplier.supplyKey.

Doc from com.oracle.bmc.http.signing.internal.KeySupplier.supplyKey.

Try to get a key for the given KeyId

Parameters
keyId:String

the identifier of the key to try to supply

Returns:Optional<RSAPrivateKey>

an Optional for the key, or empty if the key cannot be found.

Annotations
@Override