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.

See Also:

Since:

Constant Summary

BYTESIZE =
20

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

- (Object) to_java

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