Skip to content

Commit 6a0bc28

Browse files
committed
[compat] add private? and public? methods on PKey::EC
1 parent 2ab6b3a commit 6a0bc28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/jruby/ext/openssl/PKeyEC.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,12 +616,12 @@ public IRubyObject set_private_key(final ThreadContext context, final IRubyObjec
616616
}
617617
}
618618

619-
@JRubyMethod(name = "public_key?")
619+
@JRubyMethod(name = "public?", alias = "public_key?")
620620
public RubyBoolean public_p() {
621621
return publicKey != null ? getRuntime().getTrue() : getRuntime().getFalse();
622622
}
623623

624-
@JRubyMethod(name = "private_key?")
624+
@JRubyMethod(name = "private?", alias = "private_key?")
625625
public RubyBoolean private_p() {
626626
return privateKey != null ? getRuntime().getTrue() : getRuntime().getFalse();
627627
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy