Interface URLCredentialsDecorator

All Known Implementing Classes:
URLCredentialsDecoratorImpl

public interface URLCredentialsDecorator
Author:
Lukas Zaruba, lukas.zaruba@lundegaard.eu, 2019
  • Method Summary

    Modifier and Type Method Description
    java.lang.String decorate​(java.lang.String url, java.lang.String username, java.lang.String password)
    Decorates given url with credentials if present or returns as is when there are no credentials Credentials will be escaped for url
  • Method Details

    • decorate

      java.lang.String decorate​(java.lang.String url, java.lang.String username, java.lang.String password)
      Decorates given url with credentials if present or returns as is when there are no credentials Credentials will be escaped for url
      Throws:
      java.lang.IllegalArgumentException - if url is not of https schema
      java.lang.IllegalArgumentException - if password is provided but no username