Package com.oracle.bmc.auth
Class CustomerKeyIdFormatter
- java.lang.Object
-
- com.oracle.bmc.auth.CustomerKeyIdFormatter
-
public class CustomerKeyIdFormatter extends Object
Formatter used to create the correct ‘keyId’ needed for signing requests.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreateKeyId(AuthenticationDetailsProvider provider)Creates a keyId from anAuthenticationDetailsProvider.static StringcreateKeyId(String tenantId, String userId, String fingerprint)Creates a keyId from the individual components.
-
-
-
Method Detail
-
createKeyId
public static String createKeyId(String tenantId, String userId, String fingerprint)
Creates a keyId from the individual components.- Parameters:
tenantId- The tenantIduserId- The userIdfingerprint- The fingerprint- Returns:
- The keyId used to sign requests
-
createKeyId
public static String createKeyId(@Nonnull AuthenticationDetailsProvider provider)
Creates a keyId from anAuthenticationDetailsProvider.- Parameters:
provider- The provider- Returns:
- The keyId used to sign requests
-
-