class SecretKey extends AnyRef
A SecretKey that can be used to sign things and decrypt messages.
- Alphabetic
- By Inheritance
- SecretKey
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SecretKey(nested: PGPSecretKey)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
decrypt(input: InputStream, output: OutputStream, passPhrase: Array[Char]): Unit
Decrypts a given input stream into the output stream.
Decrypts a given input stream into the output stream. Note: This ignores fileNames if they are part of the decrypted message.
-
def
decryptFile(file: File, passPhrase: Array[Char]): Unit
Decrypts a file, attempting to write to the filename specified in the message.
-
def
decryptString(input: String, passPhrase: Array[Char]): String
Decrypts a given string message using this secret key.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isMasterKey: Boolean
- returns
True if this key is the master of a key ring.
-
def
isSigningKey: Boolean
- returns
True if this key can make signatures.
- def keyID: Long
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nested: PGPSecretKey
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
publicKey: PublicKey
Returns the public key associated with this key.
-
def
sign(file: File, signatureFile: File, pass: Array[Char]): File
Creates a signature for a file and writes it to the signatureFile.
-
def
signMessageFile(file: File, out: OutputStream, pass: Array[Char]): Unit
Signs an input stream of bytes and writes it to the output stream.
-
def
signMessageStream(input: InputStream, name: String, length: Long, output: OutputStream, pass: Array[Char], lastMod: Date = new Date): Unit
Encodes and signs a message into a PGP message.
-
def
signMessageString(input: String, name: String, pass: Array[Char]): String
Returns a PGP compressed and signed copy of the input string.
-
def
signPublicKey(key: PublicKey, notation: (String, String), pass: Array[Char]): PublicKey
Takes a public key and signs it, returning the new public key.
-
def
signStream(in: InputStream, signature: OutputStream, pass: Array[Char]): Unit
Creates a signature for the data in the input stream on the output stream.
Creates a signature for the data in the input stream on the output stream. Note: This will close all streams.
-
def
signString(msg: String, pass: Array[Char]): String
Creates a signature for the input string.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- lazy val toString: String
- def userIDs: Traversable[String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()