public final class SignaturePemKeysetReader extends Object implements KeysetReader
KeysetReader that can read digital signature keys in PEM
format (RFC 7468).
import com.google.crypto.tink.subtle.PemKeyType;
String pem = ...;
PemKeyType type = ...;
KeysetReader reader = SignaturePemKeysetReader.newBuilder().addPem(pem, type).build();
| Modifier and Type | Class and Description |
|---|---|
static class |
SignaturePemKeysetReader.Builder
Builder for SignaturePemKeysetReader
|
| Modifier and Type | Method and Description |
|---|---|
static SignaturePemKeysetReader.Builder |
newBuilder() |
com.google.crypto.tink.proto.Keyset |
read()
Tries to read and return a cleartext
Keyset. |
com.google.crypto.tink.proto.EncryptedKeyset |
readEncrypted()
Tries to read and return an
EncryptedKeyset. |
public static SignaturePemKeysetReader.Builder newBuilder()
SignaturePemKeysetReader.Builder for SignaturePemKeysetReader.public com.google.crypto.tink.proto.Keyset read()
throws IOException
KeysetReaderKeyset.read in interface KeysetReaderIOExceptionpublic com.google.crypto.tink.proto.EncryptedKeyset readEncrypted()
throws IOException
KeysetReaderEncryptedKeyset.readEncrypted in interface KeysetReaderIOException