Class ChainingCredentialsProvider


  • public class ChainingCredentialsProvider
    extends CredentialsProvider
    A credentials provider chaining multiple credentials providers
    Since:
    3.5
    • Constructor Detail

      • ChainingCredentialsProvider

        public ChainingCredentialsProvider​(CredentialsProvider... providers)
        Create a new chaining credential provider. This provider tries to retrieve credentials from the chained credential providers in the order they are given here. If multiple providers support the requested items and have non-null credentials the first of them will be used.
        Parameters:
        providers - credential providers asked for credentials in the order given here