INNER CODE UNIT · Java
getName
spring-cloud/spring-cloud-vault · spring-cloud-vault-config-aws/src/main/java/org/springframework/cloud/vault/config/aws/VaultConfigAwsBootstrapConfiguration.java:112
public String getName() {
return String.format("%s with Role %s", this.properties.getBackend(), this.properties.getRole());
}
@Override
public String getPath() {
String defaultPath = "%s/sts/%s";
StringJoiner joiner = new StringJoiner("&");
// ttl for assumed_role or federation_token
// pass through to let aws take care of min and max validations
// per the vault role
if (!this.properties.getTtl().isZero()) {
joiner.add("ttl=" + this.properties.getTtl().toMillis() + "ms");
}
// role_arn for assumed_role for vault role that has multiple role