Skip to content

Commit

Permalink
ACA was throwing up errors because of serialization for the Platform
Browse files Browse the repository at this point in the history
Cert, undid code for spotbugs to resolve the issue
  • Loading branch information
cyrus-dev committed Jan 12, 2024
1 parent 8aef4b5 commit 799a992
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ public String getValue() {
private SecurityLevel level;
@Getter @Setter
private ASN1Boolean plus;
@Getter
private ASN1Sequence asn1Sequence;

/**
* Default constructor.
Expand Down Expand Up @@ -111,8 +109,6 @@ public FIPSLevel(final ASN1Sequence sequence) throws IllegalArgumentException {
if (sequence.size() == MAX_SEQUENCE_SIZE) {
plus = ASN1Boolean.getInstance(sequence.getObjectAt(2));
}

this.asn1Sequence = sequence;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.bouncycastle.asn1.ASN1Boolean;
import org.bouncycastle.asn1.ASN1Enumerated;
import org.bouncycastle.asn1.ASN1Integer;
Expand Down Expand Up @@ -86,9 +85,7 @@ public enum MeasurementRootType {
}

private ASN1Integer version;
@Getter @Setter
private CommonCriteriaMeasures ccInfo;
@Getter @Setter
private FIPSLevel fipsLevel;
private MeasurementRootType rtmType;
private ASN1Boolean iso9000Certified;
Expand Down Expand Up @@ -185,6 +182,34 @@ public void setVersion(final ASN1Integer version) {
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
*/
Expand Down

0 comments on commit 799a992

Please sign in to comment.