Record Class SupportedAlgorithmQuery
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.keymanagement.query.SupportedAlgorithmQuery
- Record Components:
category- the algorithm category (for examplePQC,CLASSICAL,HYBRID);nullfor every categorystatus- the catalogue status (for exampleRECOMMENDED,LEGACY);nullfor every statusminSecurityLevel- the lowest NIST security level;nullfor no lower boundmaxSecurityLevel- the highest NIST security level;nullfor no upper boundkeyOps- JWK key operations the algorithm must support (for examplesign,encrypt);nullfor anystandards- standards the algorithm must belong to (for exampleFIPS-203);nullfor anykty- key types (for exampleML-KEM,EC,COMPOSITE);nullfor every typealg- algorithm identifiers (for exampleML-KEM-768);nullfor every algorithmcompositeMode-COMPOSITE_KEM_COMBINEorCOMPOSITE_SIGNATURE;nullfor every mode
public record SupportedAlgorithmQuery(String category, String status, Integer minSecurityLevel, Integer maxSecurityLevel, Set<String> keyOps, Set<String> standards, Set<String> kty, Set<String> alg, Set<String> compositeMode)
extends Record
The filters of the tenant's supported algorithm catalogue (
keys().supportedAlgorithms).
Its components are exactly the query parameters of the listSupportedAlgorithms operation; a null
component sends nothing, so the server applies its default.
SupportedAlgorithmQuery.all().withKty(Set.of("ML-KEM")).withMinSecurityLevel(3)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalg()Returns the value of thealgrecord component.static SupportedAlgorithmQueryall()category()Returns the value of thecategoryrecord component.Returns the value of thecompositeModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyOps()Returns the value of thekeyOpsrecord component.kty()Returns the value of thektyrecord component.Returns the value of themaxSecurityLevelrecord component.Returns the value of theminSecurityLevelrecord component.Returns the value of thestandardsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.withCategory(String value) withCompositeMode(Set<String> value) withKeyOps(Set<String> value) withMaxSecurityLevel(Integer value) withMinSecurityLevel(Integer value) withStandards(Set<String> value) withStatus(String value)
-
Constructor Details
-
Method Details
-
all
- Returns:
- no filter: the whole catalogue
-
withCategory
- Parameters:
value- the newcategory;nullclears it- Returns:
- a copy of this query with
categoryreplaced
-
withStatus
- Parameters:
value- the newstatus;nullclears it- Returns:
- a copy of this query with
statusreplaced
-
withMinSecurityLevel
- Parameters:
value- the newminSecurityLevel;nullclears it- Returns:
- a copy of this query with
minSecurityLevelreplaced
-
withMaxSecurityLevel
- Parameters:
value- the newmaxSecurityLevel;nullclears it- Returns:
- a copy of this query with
maxSecurityLevelreplaced
-
withKeyOps
- Parameters:
value- the newkeyOps;nullclears it- Returns:
- a copy of this query with
keyOpsreplaced
-
withStandards
- Parameters:
value- the newstandards;nullclears it- Returns:
- a copy of this query with
standardsreplaced
-
withKty
- Parameters:
value- the newkty;nullclears it- Returns:
- a copy of this query with
ktyreplaced
-
withAlg
- Parameters:
value- the newalg;nullclears it- Returns:
- a copy of this query with
algreplaced
-
withCompositeMode
- Parameters:
value- the newcompositeMode;nullclears it- Returns:
- a copy of this query with
compositeModereplaced
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
minSecurityLevel
Returns the value of theminSecurityLevelrecord component.- Returns:
- the value of the
minSecurityLevelrecord component
-
maxSecurityLevel
Returns the value of themaxSecurityLevelrecord component.- Returns:
- the value of the
maxSecurityLevelrecord component
-
keyOps
Returns the value of thekeyOpsrecord component.- Returns:
- the value of the
keyOpsrecord component
-
standards
Returns the value of thestandardsrecord component.- Returns:
- the value of the
standardsrecord component
-
kty
Returns the value of thektyrecord component.- Returns:
- the value of the
ktyrecord component
-
alg
Returns the value of thealgrecord component.- Returns:
- the value of the
algrecord component
-
compositeMode
Returns the value of thecompositeModerecord component.- Returns:
- the value of the
compositeModerecord component
-