ACA was throwing up errors because of serialization for the Platform

Cert, undid code for spotbugs to resolve the issue
This commit is contained in:
Cyrus 2024-01-12 10:18:38 -05:00
parent 8aef4b5bac
commit 799a9922f4
2 changed files with 28 additions and 7 deletions

View File

@ -76,8 +76,6 @@ public class FIPSLevel {
private SecurityLevel level;
@Getter @Setter
private ASN1Boolean plus;
@Getter
private ASN1Sequence asn1Sequence;
/**
* Default constructor.
@ -111,8 +109,6 @@ public class FIPSLevel {
if (sequence.size() == MAX_SEQUENCE_SIZE) {
plus = ASN1Boolean.getInstance(sequence.getObjectAt(2));
}
this.asn1Sequence = sequence;
}
@Override

View File

@ -2,7 +2,6 @@ package hirs.attestationca.persist.entity.userdefined.certificate.attributes;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.bouncycastle.asn1.ASN1Boolean;
import org.bouncycastle.asn1.ASN1Enumerated;
import org.bouncycastle.asn1.ASN1Integer;
@ -86,9 +85,7 @@ public class TBBSecurityAssertion {
}
private ASN1Integer version;
@Getter @Setter
private CommonCriteriaMeasures ccInfo;
@Getter @Setter
private FIPSLevel fipsLevel;
private MeasurementRootType rtmType;
private ASN1Boolean iso9000Certified;
@ -185,6 +182,34 @@ public class TBBSecurityAssertion {
this.version = version;
}
/**
* @return the ccInfo
*/
public CommonCriteriaMeasures getCcInfo() {
return ccInfo;
}
/**
* @param ccInfo the ccInfo to set
*/
public void setCcInfo(final CommonCriteriaMeasures ccInfo) {
this.ccInfo = ccInfo;
}
/**
* @return the fipsLevel
*/
public FIPSLevel getFipsLevel() {
return fipsLevel;
}
/**
* @param fipsLevel the fipsLevel to set
*/
public void setFipsLevel(final FIPSLevel fipsLevel) {
this.fipsLevel = fipsLevel;
}
/**
* @return the rtmType
*/