Class: I2P::SigningPrivateKey
Overview
I2P signing private key data structure.
Constant Summary
- BYTESIZE =
20
Instance Method Summary (collapse)
-
- (Object) to_java
Returns an instance of the Java class
net.i2p.data.SigningPrivateKey.
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 |