Class: IapAuthenticator::Pkey
- Inherits:
-
Object
- Object
- IapAuthenticator::Pkey
- Defined in:
- lib/iap_authenticator/pkey.rb
Class Method Summary collapse
Class Method Details
.parse(private_key_string) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/iap_authenticator/pkey.rb', line 3 def self.parse( private_key_string ) begin rsa_private_key = OpenSSL::PKey::RSA.new(private_key_string) rescue raise "Invalid Private Key in service account credentials." end return rsa_private_key end |