Package com.oracle.bmc.auth
Class SimpleAuthenticationDetailsProvider
- java.lang.Object
-
- com.oracle.bmc.auth.CustomerAuthenticationDetailsProvider
-
- com.oracle.bmc.auth.SimpleAuthenticationDetailsProvider
-
- All Implemented Interfaces:
AbstractAuthenticationDetailsProvider,AuthenticationDetailsProvider,BasicAuthenticationDetailsProvider,RegionProvider
public class SimpleAuthenticationDetailsProvider extends CustomerAuthenticationDetailsProvider implements AuthenticationDetailsProvider, RegionProvider
Basic implementation ofAuthenticationDetailsProviderthat just returns configured values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleAuthenticationDetailsProvider.SimpleAuthenticationDetailsProviderBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SimpleAuthenticationDetailsProvider.SimpleAuthenticationDetailsProviderBuilderbuilder()StringgetFingerprint()Returns the fingerprint of the key being used.StringgetPassPhrase()Deprecated.char[]getPassphraseCharacters()Returns the optional pass phrase for the (encrypted) private key, as a character array.InputStreamgetPrivateKey()Get the input stream with the private key.RegiongetRegion()Returns the region.StringgetTenantId()Returns the tenant OCID.StringgetUserId()Returns the user OCID.StringtoString()-
Methods inherited from class com.oracle.bmc.auth.CustomerAuthenticationDetailsProvider
getKeyId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.auth.BasicAuthenticationDetailsProvider
getKeyId
-
-
-
-
Method Detail
-
builder
public static SimpleAuthenticationDetailsProvider.SimpleAuthenticationDetailsProviderBuilder builder()
-
getPrivateKey
public InputStream getPrivateKey()
Get the input stream with the private key.Note that this stream may be read multiple times.
- Specified by:
getPrivateKeyin interfaceBasicAuthenticationDetailsProvider- Returns:
- input stream with private key
-
getPassPhrase
@Deprecated public String getPassPhrase()
Deprecated.Description copied from interface:BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key.- Specified by:
getPassPhrasein interfaceBasicAuthenticationDetailsProvider- Returns:
- The pass phrase, or null if not applicable
-
getTenantId
public String getTenantId()
Description copied from interface:AuthenticationDetailsProviderReturns the tenant OCID.- Specified by:
getTenantIdin interfaceAuthenticationDetailsProvider- Returns:
- The tenant OCID.
-
getUserId
public String getUserId()
Description copied from interface:AuthenticationDetailsProviderReturns the user OCID.- Specified by:
getUserIdin interfaceAuthenticationDetailsProvider- Returns:
- The user OCID.
-
getFingerprint
public String getFingerprint()
Description copied from interface:AuthenticationDetailsProviderReturns the fingerprint of the key being used.- Specified by:
getFingerprintin interfaceAuthenticationDetailsProvider- Returns:
- The fingerprint.
-
getPassphraseCharacters
public char[] getPassphraseCharacters()
Description copied from interface:BasicAuthenticationDetailsProviderReturns the optional pass phrase for the (encrypted) private key, as a character array.- Specified by:
getPassphraseCharactersin interfaceBasicAuthenticationDetailsProvider- Returns:
- The pass phrase as character array, or null if not applicable
-
getRegion
public Region getRegion()
Description copied from interface:RegionProviderReturns the region.- Specified by:
getRegionin interfaceRegionProvider- Returns:
- Region object.
-
-