Method: Ccrypto::Java::X509Engine#to_extkeyusage
- Defined in:
- lib/ccrypto/java/engines/x509_engine.rb
#to_extkeyusage ⇒ Object
kur end
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'lib/ccrypto/java/engines/x509_engine.rb', line 571 def to_extkeyusage kur = java.util.Vector.new @certProfile.ext_key_usage.selected.each do |ku| case ku when :allPurpose kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::anyExtendedKeyUsage when :serverAuth kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_serverAuth when :clientAuth kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_clientAuth when :codeSigning kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_codeSigning when :emailProtection kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_emailProtection when :timestamping kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_timeStamping when :ocspSigning kur.add_element org.bouncycastle.asn1.x509.KeyPurposeId::id_kp_OCSPSigning end end kur end |