This class represents a public PGP key. It can be used to encrypt messages for a person and validate that messages were signed correctly.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Type members
Classlikes
Attributes
- Supertypes
- Self type
-
signatures.type
Returns the userIDs associated with this public key.
Returns the userIDs associated with this public key.
Attributes
- Supertypes
-
trait Iterable[String]trait IterableFactoryDefaults[String, Iterable]trait IterableOps[String, Iterable, Iterable[String]]trait IterableOnceOps[String, Iterable, Iterable[String]]trait IterableOnce[String]class Objecttrait Matchableclass AnyShow all
- Self type
-
userIDs.type
Value members
Concrete methods
Encrypts a file such that only the secret key associated with this public key can decrypt.
Encrypts a file such that only the secret key associated with this public key can decrypt.
Attributes
Encrypts a string such that only the secret key associated with this public key could decrypt.
Encrypts a string such that only the secret key associated with this public key could decrypt.
Attributes
The identifier for this key.
The identifier for this key.
Attributes
Saves the current entity to an output stream.
Saves the current entity to an output stream.
Attributes
Verifies a signed message and extracts the contents.
Verifies a signed message and extracts the contents.
Value parameters
- input
-
The incoming PGP message.
- output
-
The decoded and verified message.
Attributes
Verifies a signature stream against an input stream.
Verifies a signature stream against an input stream.
Value parameters
- msg
-
The input stream containing the raw message to verify.
- msgName
-
the name tied in the signature for this object. For a file, this is the filename.
- signature
-
The input stream containing the PGP signature.
Attributes
Inherited methods
Saves the current entity to a file.
Saves the current entity into a string.
Reads in a PGP message from a file, verifies the signature and writes to the output file.
Reads in a PGP message from a file, verifies the signature and writes to the output file.
Attributes
- Inherited from:
- PublicKeyLike
Attributes
- Inherited from:
- PublicKeyLike
Reads in a PGP message and from a string, verifies the signature and returns the raw content.
Reads in a PGP message and from a string, verifies the signature and returns the raw content.
Attributes
- Inherited from:
- PublicKeyLike
Reads in a raw file, verifies the signature file is valid for this file.
Reads in a raw file, verifies the signature file is valid for this file.
Attributes
- Inherited from:
- PublicKeyLike
Verifies that a stream was signed correctly by another stream.
Verifies that a stream was signed correctly by another stream.
Attributes
- Throws
-
KeyNotFoundException
is signature contains an unknown public key.
- Inherited from:
- PublicKeyLike
Reads in a PGP message from a string, verifies the signature string is accurate for the message.
Reads in a PGP message from a string, verifies the signature string is accurate for the message.
Attributes
- Inherited from:
- PublicKeyLike