Class CachedCredentials


  • public class CachedCredentials
    extends ConnectorCache<String>
    Wrapper class for storing AWS Temporary credentials in the connector cache. The expiration date is verified when isValid() is invoked.
    • Constructor Detail

      • CachedCredentials

        public CachedCredentials​(com.boomi.common.aws.rolesanywhere.RolesAnywhereConfig config,
                                 com.boomi.common.aws.rolesanywhere.response.TemporaryCredentials credentials)
    • Method Detail

      • buildKey

        public static String buildKey​(com.boomi.common.aws.rolesanywhere.RolesAnywhereConfig config)
        Generates a key based on a RolesAnywhereConfig representing a connection that uses IAM Roles Anywhere authentication.
        Parameters:
        config - the AWS Roles Anywhere configuration
        Returns:
        key identifier for the provided config
      • isValid

        public boolean isValid()
        Verifies if the credentials are valid based on their expiration time. Credentials that expire in less than 60 seconds are considered invalid.
        Overrides:
        isValid in class ConnectorCache<String>
        Returns:
        true if the contained credentials are not expired, false otherwise
      • getTempCredentials

        public com.boomi.common.aws.rolesanywhere.response.TemporaryCredentials getTempCredentials()