fix typo in method AppRole.Builder#wit0hTokenPeriod (#49)
This commit is contained in:
@ -703,21 +703,34 @@ public final class AppRole {
|
||||
* @return self
|
||||
* @since 0.9
|
||||
*/
|
||||
public Builder wit0hTokenPeriod(final Integer tokenPeriod) {
|
||||
public Builder withTokenPeriod(final Integer tokenPeriod) {
|
||||
this.tokenPeriod = tokenPeriod;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set renewal period for generated token in seconds.
|
||||
*
|
||||
* @param tokenPeriod period in seconds
|
||||
* @return self
|
||||
* @since 0.9
|
||||
* @deprecated Use {@link #withTokenPeriod(Integer)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public Builder wit0hTokenPeriod(final Integer tokenPeriod) {
|
||||
return withTokenPeriod(tokenPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set renewal period for generated token in seconds.
|
||||
*
|
||||
* @param period period in seconds
|
||||
* @return self
|
||||
* @deprecated Use {@link #wit0hTokenPeriod(Integer)} instead.
|
||||
* @deprecated Use {@link #withTokenPeriod(Integer)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public Builder withPeriod(final Integer period) {
|
||||
return wit0hTokenPeriod(period);
|
||||
return withTokenPeriod(period);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -308,21 +308,34 @@ public final class AppRoleBuilder {
|
||||
* @return self
|
||||
* @since 0.9
|
||||
*/
|
||||
public AppRoleBuilder wit0hTokenPeriod(final Integer tokenPeriod) {
|
||||
public AppRoleBuilder withTokenPeriod(final Integer tokenPeriod) {
|
||||
this.tokenPeriod = tokenPeriod;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set renewal period for generated token in seconds.
|
||||
*
|
||||
* @param tokenPeriod period in seconds
|
||||
* @return self
|
||||
* @since 0.9
|
||||
* @deprecated Use {@link #withTokenPeriod(Integer)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public AppRoleBuilder wit0hTokenPeriod(final Integer tokenPeriod) {
|
||||
return withTokenPeriod(tokenPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set renewal period for generated token in seconds.
|
||||
*
|
||||
* @param period period in seconds
|
||||
* @return self
|
||||
* @deprecated Use {@link #wit0hTokenPeriod(Integer)} instead.
|
||||
* @deprecated Use {@link #withTokenPeriod(Integer)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public AppRoleBuilder withPeriod(final Integer period) {
|
||||
return wit0hTokenPeriod(period);
|
||||
return withTokenPeriod(period);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -771,7 +771,7 @@ class HTTPVaultConnectorTest {
|
||||
|
||||
/* Update role model with custom flags */
|
||||
AppRole role2 = AppRole.builder(roleName)
|
||||
.wit0hTokenPeriod(321)
|
||||
.withTokenPeriod(321)
|
||||
.build();
|
||||
|
||||
/* Create role */
|
||||
|
@ -138,7 +138,7 @@ class AppRoleBuilderTest {
|
||||
.withTokenExplicitMaxTtl(TOKEN_EXPLICIT_MAX_TTL)
|
||||
.withTokenNoDefaultPolicy(TOKEN_NO_DEFAULT_POLICY)
|
||||
.withTokenNumUses(TOKEN_NUM_USES)
|
||||
.wit0hTokenPeriod(TOKEN_PERIOD)
|
||||
.withTokenPeriod(TOKEN_PERIOD)
|
||||
.withTokenType(TOKEN_TYPE)
|
||||
.build();
|
||||
assertThat(role.getName(), is(NAME));
|
||||
@ -183,7 +183,7 @@ class AppRoleBuilderTest {
|
||||
.withTokenExplicitMaxTtl(TOKEN_EXPLICIT_MAX_TTL)
|
||||
.withTokenNoDefaultPolicy(TOKEN_NO_DEFAULT_POLICY)
|
||||
.withTokenNumUses(TOKEN_NUM_USES)
|
||||
.wit0hTokenPeriod(TOKEN_PERIOD)
|
||||
.withTokenPeriod(TOKEN_PERIOD)
|
||||
.withTokenType(TOKEN_TYPE)
|
||||
.build();
|
||||
assertThat(role.getName(), is(NAME));
|
||||
|
Reference in New Issue
Block a user