Class: I2P::SigningPrivateKey

Inherits:
Key show all
Defined in:
lib/i2p/data/signing_private_key.rb,
lib/i2p/sdk.rb

Overview

**I2P signing private key data structure.**

Constant Summary collapse

BYTESIZE =

Since:

  • 0.1.3

20

Instance Attribute Summary

Attributes inherited from Key

#data

Instance Method Summary collapse

Methods inherited from Key

#initialize, read, #to_s, #valid?

Methods inherited from Structure

#==, #eql?, parse, read, #size, #to_base64, #to_s

Constructor Details

This class inherits a constructor from I2P::Key

Instance Method Details

#to_javaObject

Returns an instance of the Java class ‘net.i2p.data.SigningPrivateKey`.

**This method only works with JRuby, not with MRI or YARV.**



56
57
58
# File 'lib/i2p/sdk.rb', line 56

def to_java
  I2P::SDK::SigningPrivateKey.new(to_s.to_java_bytes)
end