Package com.google.crypto.tink
Interface KeysetReader
-
- All Known Implementing Classes:
BinaryKeysetReader,JsonKeysetReader,SharedPrefKeysetReader,SignaturePemKeysetReader
public interface KeysetReaderA KeysetReader knows how to read aKeysetor anEncryptedKeysetfrom some source.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.crypto.tink.proto.Keysetread()Tries to read and return a cleartextKeyset.com.google.crypto.tink.proto.EncryptedKeysetreadEncrypted()Tries to read and return anEncryptedKeyset.
-
-
-
Method Detail
-
read
com.google.crypto.tink.proto.Keyset read() throws java.io.IOExceptionTries to read and return a cleartextKeyset.- Returns:
- the Keyset
- Throws:
java.io.IOException
-
readEncrypted
com.google.crypto.tink.proto.EncryptedKeyset readEncrypted() throws java.io.IOExceptionTries to read and return anEncryptedKeyset.- Returns:
- the EncryptedKeyset
- Throws:
java.io.IOException
-
-