Interface Credentials

  • All Known Implementing Classes:
    RoleBasedCredentials

    public interface Credentials
    The Credentials encapsulate different ways of carrying credentials throughout the client.

    Usually this will be username and password for RBAC, but other means are possible (like X.509 client certificate authentication or legacy per-bucket credentials).

    Since:
    2.0.0
    • Method Detail

      • usernameForBucket

        String usernameForBucket​(String bucket)
        Returns the corresponding username for a given bucket.
        Parameters:
        bucket - the name of the bucket.
        Returns:
        the username for the given bucket.
      • passwordForBucket

        String passwordForBucket​(String bucket)
        Returns the corresponding password for a given bucket.
        Parameters:
        bucket - the name of the bucket.
        Returns:
        the password for the given bucket.