ChenSammi commented on code in PR #7394:
URL: https://github.com/apache/ozone/pull/7394#discussion_r1837450557
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/OzoneTokenIdentifier.java:
##########
@@ -326,6 +359,18 @@ public String getOmCertSerialId() {
public void setOmCertSerialId(String omCertSerialId) {
this.omCertSerialId = omCertSerialId;
+ Preconditions.checkArgument(this.omCertSerialId == null ||
this.secretKeyId == null,
Review Comment:
The check here is to make sure a OzoneTokenIdentifier cannot have both
omCertSerialId and secretKeyId set. It can only have one of them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]