Package com.github.gastaldi.git
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.Stringdecorate(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
-
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- Throws:
java.lang.IllegalArgumentException- if url is not of https schemajava.lang.IllegalArgumentException- if password is provided but no username
-