Class OkeTenancyOnlyAuthenticationDetailsProvider
- java.lang.Object
-
- com.oracle.bmc.auth.okeworkloadidentity.internal.OkeTenancyOnlyAuthenticationDetailsProvider
-
- All Implemented Interfaces:
AbstractAuthenticationDetailsProvider,BasicAuthenticationDetailsProvider,ProvidesCustomRequestSigner,RefreshableOnNotAuthenticatedProvider<String>
public class OkeTenancyOnlyAuthenticationDetailsProvider extends Object implements BasicAuthenticationDetailsProvider, RefreshableOnNotAuthenticatedProvider<String>, ProvidesCustomRequestSigner
Resource Principals V2 using public/private key to sign the request.This class provides the authentication based on public/private key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOkeTenancyOnlyAuthenticationDetailsProvider.NoOpRequestSigner
-
Constructor Summary
Constructors Constructor Description OkeTenancyOnlyAuthenticationDetailsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RequestSignergetCustomRequestSigner()StringgetKeyId()Returns the keyId used to sign requests.StringgetPassPhrase()Deprecated.Use getPassphraseCharacters insteadchar[]getPassphraseCharacters()Returns the optional pass phrase for the (encrypted) private key, as a character array.InputStreamgetPrivateKey()Returns a new InputStream to the private key.Stringrefresh()Refreshes the authentication data used by the provider.
-
-
-
Method Detail
-
getKeyId
public String getKeyId()
Returns the keyId used to sign requests.For this provider, this is a no-op and nothing is done.
- Specified by:
getKeyIdin interfaceBasicAuthenticationDetailsProvider- Returns:
- always return null
-
getPrivateKey
public InputStream getPrivateKey()
Returns a new InputStream to the private key.This stream should be closed by the caller, implementations should return new streams each time. For this provider, this is a no-op and nothing is done.
- Specified by:
getPrivateKeyin interfaceBasicAuthenticationDetailsProvider- Returns:
- always return null
-
getPassPhrase
public String getPassPhrase()
Deprecated.Use getPassphraseCharacters insteadReturns the optional pass phrase for the (encrypted) private key.For this provider, this is a no-op and nothing is done.
- Specified by:
getPassPhrasein interfaceBasicAuthenticationDetailsProvider- Returns:
- The always return null
-
getPassphraseCharacters
public char[] getPassphraseCharacters()
Returns the optional pass phrase for the (encrypted) private key, as a character array.For this provider, this is a no-op and nothing is done.
- Specified by:
getPassphraseCharactersin interfaceBasicAuthenticationDetailsProvider- Returns:
- always return null
-
refresh
public String refresh()
Refreshes the authentication data used by the provider.For this provider, this is a no-op and nothing is done.
- Specified by:
refreshin interfaceRefreshableOnNotAuthenticatedProvider<String>- Returns:
- always null
-
getCustomRequestSigner
public RequestSigner getCustomRequestSigner()
- Specified by:
getCustomRequestSignerin interfaceProvidesCustomRequestSigner
-
-