Package co.ankatech.ankasecure.sdk.model
Record Class KeyFilters
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.sdk.model.KeyFilters
- Record Components:
origin- key origin filter (e.g.GENERATED,IMPORTED);nullto skiprestricted- restricted-flag filter;nullto skipkty- key type filter (e.g.RSA,ML-KEM,oct);nullto skipstatus- lifecycle status filter (e.g.ACTIVE,REVOKED);nullto skip
public record KeyFilters(String origin, Boolean restricted, String kty, String status)
extends Record
Server-side filters for the key listing endpoints. Filters apply at the server
BEFORE pagination, so the page totals returned by
listKeys(filters, page, size) are filtered, tenant-scoped counts.
Pass null for any dimension that should not be filtered; use
none() for an unfiltered listing. Filters combine with AND logic.
Example
// All ACTIVE ML-KEM keys
KeyFilters filters = new KeyFilters(null, null, "ML-KEM", "ACTIVE");
// All imported keys
KeyFilters imported = new KeyFilters("IMPORTED", null, null, null);
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionKeyFilters(String origin, Boolean restricted, String kty, String status) Creates an instance of aKeyFiltersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kty()Returns the value of thektyrecord component.static KeyFiltersnone()An unfiltered listing (all keys of the tenant).origin()Returns the value of theoriginrecord component.Returns the value of therestrictedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyFilters
Creates an instance of aKeyFiltersrecord class.- Parameters:
origin- the value for theoriginrecord componentrestricted- the value for therestrictedrecord componentkty- the value for thektyrecord componentstatus- the value for thestatusrecord component
-
-
Method Details
-
none
An unfiltered listing (all keys of the tenant). -
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). -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
restricted
Returns the value of therestrictedrecord component.- Returns:
- the value of the
restrictedrecord component
-
kty
Returns the value of thektyrecord component.- Returns:
- the value of the
ktyrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-