SecretKey

com.jsuereth.pgp.SecretKey
See theSecretKey companion object
class SecretKey(val nested: PGPSecretKey)

A SecretKey that can be used to sign things and decrypt messages.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def decrypt(input: InputStream, output: OutputStream, passPhrase: Array[Char]): Unit

Decrypts a given input stream into the output stream. Note: This ignores fileNames if they are part of the decrypted message.

Decrypts a given input stream into the output stream. Note: This ignores fileNames if they are part of the decrypted message.

Attributes

def decryptFile(file: File, passPhrase: Array[Char]): Unit

Decrypts a file, attempting to write to the filename specified in the message.

Decrypts a file, attempting to write to the filename specified in the message.

Attributes

def decryptString(input: String, passPhrase: Array[Char]): String

Decrypts a given string message using this secret key.

Decrypts a given string message using this secret key.

Attributes

def isMasterKey: Boolean

Attributes

Returns

True if this key is the master of a key ring.

def isSigningKey: Boolean

Attributes

Returns

True if this key can make signatures.

def keyID: Long

Returns the public key associated with this key.

Returns the public key associated with this key.

Attributes

def sign(file: File, signatureFile: File, pass: Array[Char]): File

Creates a signature for a file and writes it to the signatureFile.

Creates a signature for a file and writes it to the signatureFile.

Attributes

def signMessageFile(file: File, out: OutputStream, pass: Array[Char]): Unit

Signs an input stream of bytes and writes it to the output stream.

Signs an input stream of bytes and writes it to the output stream.

Attributes

def signMessageStream(input: InputStream, name: String, length: Long, output: OutputStream, pass: Array[Char], lastMod: Date): Unit

Encodes and signs a message into a PGP message.

Encodes and signs a message into a PGP message.

Attributes

def signMessageString(input: String, name: String, pass: Array[Char]): String

Returns a PGP compressed and signed copy of the input string.

Returns a PGP compressed and signed copy of the input string.

Attributes

def signPublicKey(key: PublicKey, notation: (String, String), pass: Array[Char]): PublicKey

Takes a public key and signs it, returning the new public key.

Takes a public key and signs it, returning the new public key.

Attributes

def signStream(in: InputStream, signature: OutputStream, pass: Array[Char]): Unit

Creates a signature for the data in the input stream on the output stream. Note: This will close all streams.

Creates a signature for the data in the input stream on the output stream. Note: This will close all streams.

Attributes

def signString(msg: String, pass: Array[Char]): String

Creates a signature for the input string.

Creates a signature for the input string.

Attributes

def userIDs: Iterable[String]

Concrete fields

val nested: PGPSecretKey
lazy override val toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.