public class HttpPublicKeyProviderTest extends Object
| Constructor and Description |
|---|
HttpPublicKeyProviderTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
shouldAllowExtendingHttpClient() |
void |
shouldComposeTheBaseUrlAndTheKeyId() |
void |
shouldFailIfContentTypeIsNotPem() |
void |
shouldFailIfHttpRequestFails() |
void |
shouldFailIfKeyRepoReturnsInternalError() |
void |
shouldFailIfPublicKeyDoesNotParse() |
void |
shouldIncludeAcceptHeaderInTheRequest() |
void |
shouldRejectBaseUrlWithoutTrailingSlash() |
void |
shouldRejectInsecureHttp() |
void |
shouldRejectSchemelessBaseUrl() |
void |
shouldRejectSchemesOtherThanHttps() |
void |
shouldReturnNoneIfPublicKeyIsNotFound() |
void |
shouldReturnParsedPublicKey() |
public void shouldFailIfHttpRequestFails()
throws Exception
Exceptionpublic void shouldFailIfKeyRepoReturnsInternalError()
throws Exception
Exceptionpublic void shouldReturnNoneIfPublicKeyIsNotFound()
throws Exception
Exceptionpublic void shouldFailIfPublicKeyDoesNotParse()
throws Exception
Exceptionpublic void shouldFailIfContentTypeIsNotPem()
throws Exception
Exceptionpublic void shouldReturnParsedPublicKey()
throws Exception
Exceptionpublic void shouldIncludeAcceptHeaderInTheRequest()
throws Exception
Exceptionpublic void shouldComposeTheBaseUrlAndTheKeyId()
throws Exception
Exceptionpublic void shouldRejectSchemelessBaseUrl()
throws Exception
Exceptionpublic void shouldRejectSchemesOtherThanHttps()
throws Exception
Exceptionpublic void shouldRejectBaseUrlWithoutTrailingSlash()
throws Exception
Exceptionpublic void shouldAllowExtendingHttpClient()
Copyright © 2017 Atlassian. All rights reserved.