HADOOP-16195 MarshalledCredentials toString
Change-Id: I4f1bdd2be0d5760c5501dce6edb6122499108b53
This commit is contained in:
parent
b5db238383
commit
df578c07ec
@ -227,7 +227,7 @@ public String toString() {
|
|||||||
// session/role credentials may have an expiry and role ARN.
|
// session/role credentials may have an expiry and role ARN.
|
||||||
return String.format("session credentials, expiry %s; %s(%s)",
|
return String.format("session credentials, expiry %s; %s(%s)",
|
||||||
getExpirationDateTime()
|
getExpirationDateTime()
|
||||||
.map(x -> x.format(DateTimeFormatter.ISO_DATE))
|
.map(x -> x.format(DateTimeFormatter.ISO_DATE_TIME))
|
||||||
.orElse("unknown"),
|
.orElse("unknown"),
|
||||||
(isNotEmpty(roleARN)
|
(isNotEmpty(roleARN)
|
||||||
? ("role \"" + roleARN + "\" ")
|
? ("role \"" + roleARN + "\" ")
|
||||||
|
Loading…
Reference in New Issue
Block a user