use of org.apache.hadoop.hdds.protocol.proto.SCMSecurityProtocolProtos.SCMGetCrlsResponseProto in project ozone by apache.
the class SCMSecurityProtocolServerSideTranslatorPB method getCrls.
public SCMGetCrlsResponseProto getCrls(SCMGetCrlsRequestProto request) throws IOException {
List<CRLInfo> crls = impl.getCrls(request.getCrlIdList());
SCMGetCrlsResponseProto.Builder builder = SCMGetCrlsResponseProto.newBuilder();
for (CRLInfo crl : crls) {
try {
builder.addCrlInfos(crl.getProtobuf());
} catch (SCMSecurityException e) {
LOG.error("Fail in parsing CRL info", e);
throw new SCMSecurityException("Fail in parsing CRL info", e);
}
}
return builder.build();
}
Aggregations