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 ofAuthenticationDetailsProvider
that just returns configured values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleAuthenticationDetailsProvider.SimpleAuthenticationDetailsProviderBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SimpleAuthenticationDetailsProvider.SimpleAuthenticationDetailsProviderBuilder
builder()
String
getFingerprint()
Returns the fingerprint of the key being used.String
getPassPhrase()
Deprecated.char[]
getPassphraseCharacters()
Returns the optional pass phrase for the (encrypted) private key, as a character array.InputStream
getPrivateKey()
Get the input stream with the private key.Region
getRegion()
Returns the region.String
getTenantId()
Returns the tenant OCID.String
getUserId()
Returns the user OCID.String
toString()
-
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:
getPrivateKey
in interfaceBasicAuthenticationDetailsProvider
- Returns:
- input stream with private key
-
getPassPhrase
@Deprecated public String getPassPhrase()
Deprecated.Description copied from interface:BasicAuthenticationDetailsProvider
Returns the optional pass phrase for the (encrypted) private key.- Specified by:
getPassPhrase
in interfaceBasicAuthenticationDetailsProvider
- Returns:
- The pass phrase, or null if not applicable
-
getTenantId
public String getTenantId()
Description copied from interface:AuthenticationDetailsProvider
Returns the tenant OCID.- Specified by:
getTenantId
in interfaceAuthenticationDetailsProvider
- Returns:
- The tenant OCID.
-
getUserId
public String getUserId()
Description copied from interface:AuthenticationDetailsProvider
Returns the user OCID.- Specified by:
getUserId
in interfaceAuthenticationDetailsProvider
- Returns:
- The user OCID.
-
getFingerprint
public String getFingerprint()
Description copied from interface:AuthenticationDetailsProvider
Returns the fingerprint of the key being used.- Specified by:
getFingerprint
in interfaceAuthenticationDetailsProvider
- Returns:
- The fingerprint.
-
getPassphraseCharacters
public char[] getPassphraseCharacters()
Description copied from interface:BasicAuthenticationDetailsProvider
Returns the optional pass phrase for the (encrypted) private key, as a character array.- Specified by:
getPassphraseCharacters
in interfaceBasicAuthenticationDetailsProvider
- Returns:
- The pass phrase as character array, or null if not applicable
-
getRegion
public Region getRegion()
Description copied from interface:RegionProvider
Returns the region.- Specified by:
getRegion
in interfaceRegionProvider
- Returns:
- Region object.
-
-