Results for: "uri"

If file_name is writable by others, returns an integer representing the file permission bits of file_name. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

file_name can be an IO object.

File.world_writable?("/tmp")                  #=> 511
m = File.world_writable?("/tmp")
sprintf("%o", m)                              #=> "777"

Returns the Base64-encoded version of bin. This method complies with RFC 4648. No line feeds are added.

Returns the Base64-decoded version of str. This method complies with RFC 4648. ArgumentError is raised if str is incorrectly padded or contains non-alphabet characters. Note that CR or LF are also rejected.

Returns the Base64-encoded version of bin. This method complies with “Base 64 Encoding with URL and Filename Safe Alphabet” in RFC 4648. The alphabet uses ‘-’ instead of ‘+’ and ‘_’ instead of ‘/’. Note that the result can still contain ‘=’. You can remove the padding by setting padding as false.

Returns the Base64-decoded version of str. This method complies with “Base 64 Encoding with URL and Filename Safe Alphabet” in RFC 4648. The alphabet uses ‘-’ instead of ‘+’ and ‘_’ instead of ‘/’.

The padding character is optional. This method accepts both correctly-padded and unpadded input. Note that it still rejects incorrectly-padded input.

Get the ‘current’ server.

In the context of execution taking place within the main thread of a dRuby server (typically, as a result of a remote call on the server or one of its objects), the current server is that server. Otherwise, the current server is the primary server.

If the above rule fails to find a server, a DRbServerNotFound error is raised.

Get the ‘current’ server.

In the context of execution taking place within the main thread of a dRuby server (typically, as a result of a remote call on the server or one of its objects), the current server is that server. Otherwise, the current server is the primary server.

If the above rule fails to find a server, a DRbServerNotFound error is raised.

No documentation available

Safely write a file in binary mode on all platforms.

An Array of the default sources that come with RubyGems

No documentation available

Returns a copy of the current source string, that was used to construct this Parser.

Indicates whether this DH instance has a private key associated with it or not. The private key may be retrieved with DH#priv_key.

Indicates whether this DSA instance has a private key associated with it or not. The private key may be retrieved with DSA#private_key.

Verifies whether the signature is valid given the message digest input. It does so by validating sig using the public key of this DSA instance.

Parameters

Example

dsa = OpenSSL::PKey::DSA.new(2048)
doc = "Sign me"
digest = OpenSSL::Digest.digest('SHA1', doc)
sig = dsa.syssign(digest)
puts dsa.sysverify(digest, sig) # => true

Returns whether this EC instance has a private key. The private key (BN) can be retrieved with EC#private_key.

Does this keypair contain a private key?

Writes string to the SSL connection.

No documentation available
No documentation available
No documentation available

Sets the purpose of the context. See Store#purpose=.

No documentation available
No documentation available

Verifies the signature of the certificate, with the public key key. key must be an instance of OpenSSL::PKey.

Search took: 4ms  ·  Total Results: 811