Package com.google.crypto.tink
Interface KeysetHandleInterface
-
- All Known Implementing Classes:
KeysetHandle
public interface KeysetHandleInterfaceProvides the basic interface for KeysetHandle.This is useful in contexts where we want to have the API of KeysetHandle, but not the dependencies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceKeysetHandleInterface.EntryProvides the basic interface for KeysetHandle.Entry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Annotations>
TgetAnnotationsOrNull(java.lang.Class<T> t)Returns annotations which could previously be added withKeysetHandleBuilder.addAnnotations();KeysetHandleInterface.EntrygetAt(int i)Returns the entry at position i.KeysetHandleInterface.EntrygetPrimary()Returns the unique primary entry of the keyset.intsize()Returns the number of entries in this keyset.
-
-
-
Method Detail
-
getPrimary
KeysetHandleInterface.Entry getPrimary()
Returns the unique primary entry of the keyset.
-
size
int size()
Returns the number of entries in this keyset.
-
getAt
KeysetHandleInterface.Entry getAt(int i)
Returns the entry at position i.- Throws:
java.lang.IndexOutOfBoundsException- if i < 0 or i >= size();
-
getAnnotationsOrNull
<T extends Annotations> T getAnnotationsOrNull(java.lang.Class<T> t)
Returns annotations which could previously be added withKeysetHandleBuilder.addAnnotations();
-
-