Polishing.

Add missing assertions. Javadoc.

See gh-284.
This commit is contained in:
Mark Paluch
2018-08-27 15:38:24 +02:00
parent 23184fe415
commit 3489d6ced6
3 changed files with 5 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ public class AwsEc2Authentication implements ClientAuthentication,
/**
* Create a new {@link AwsEc2Authentication} specifying
* {@link AwsEc2AuthenticationOptions}, a Vault and an AWS-Metadata-specific
* {@link RestOperations} .
* {@link RestOperations}.
*
* @param options must not be {@literal null}.
* @param vaultRestOperations must not be {@literal null}.

View File

@@ -151,13 +151,15 @@ public class AwsEc2AuthenticationOptions {
/**
* Configure the Identity Document {@link URI}.
*
* @param identityDocumentUri must not be empty or {@literal null}.
* @param identityDocumentUri must not be {@literal null}.
* @return {@code this} {@link AwsEc2AuthenticationOptionsBuilder}.
* @see #DEFAULT_PKCS7_IDENTITY_DOCUMENT_URI
*/
public AwsEc2AuthenticationOptionsBuilder identityDocumentUri(
URI identityDocumentUri) {
Assert.notNull(identityDocumentUri, "Identity document URI must not be null");
this.identityDocumentUri = identityDocumentUri;
return this;
}

View File

@@ -83,7 +83,7 @@ public class AwsIamAuthentication implements ClientAuthentication {
/**
* Create a new {@link AwsIamAuthentication} specifying
* {@link AwsIamAuthenticationOptions}, a Vault and an AWS-Metadata-specific
* {@link RestOperations} .
* {@link RestOperations}.
*
* @param options must not be {@literal null}.
* @param vaultRestOperations must not be {@literal null}.