Class RoleBasedCredentials

    • Constructor Detail

      • RoleBasedCredentials

        public RoleBasedCredentials​(String username,
                                    String password)
    • Method Detail

      • usernameForBucket

        public String usernameForBucket​(String bucket)
        Description copied from interface: Credentials
        Returns the corresponding username for a given bucket.
        Specified by:
        usernameForBucket in interface Credentials
        Parameters:
        bucket - the name of the bucket.
        Returns:
        the username for the given bucket.
      • passwordForBucket

        public String passwordForBucket​(String bucket)
        Description copied from interface: Credentials
        Returns the corresponding password for a given bucket.
        Specified by:
        passwordForBucket in interface Credentials
        Parameters:
        bucket - the name of the bucket.
        Returns:
        the password for the given bucket.