SSE4E GPError GPSystem ByteString ByteBuffer TLV TLVList Card Atr Key Crypto Application GPApplication GPSecDomain ASN1 CardFile IsoSecureChannel ApplFactory GPXML JsScript CardSim X509 CRL KeyStore CMSSignedData CMSGenerator XMLSignature OCSPQuery LDAP SOAP URLConnection PKCS11Provider PKCS11Session PKCS11Object OutlineNode OpenSCDP |
KeyStore - Reference DocumentationClass implementing access to Java key stores from JavaScript Index of MethodsConstructorPrototypeKeyStore(String provider, String type, String filename, String password) KeyStore(String provider, String type, String filename) KeyStore(String provider, String type) KeyStore(String provider) DescriptionCreate and load key store Arguments
Exceptions
Examplevar ks = new KeyStore("BC", "BKS", "sample.bks", "1234"); getAliases()PrototypeString[] getAliases() DescriptionReturn list of aliases defined in key store. Return
Exceptions
Examplevar aliases = ks.getAliases(); for (var i = 0; i < aliases.length; i++) { print(aliases[i]); } getKey()PrototypegetKey(Key key) getKey(Key key, String password) DescriptionLink key object with key instance in key store using the key id. Arguments
Return
Exceptions
Examplevar k = new Key(); k.setType(Key.PRIVATE); k.setID("openscdp"); ks.getKey(k, "1234"); getCertificate()PrototypegetCertificate(String alias) DescriptionGet named certificate from keystore. Arguments
Return
Exceptions
Examplevar cert = ks.getCertificate("openscdp"); assert(cert.getSubjectDNString() == "E=support@openscdp.org,C=DE,L=Minden,O=CardContact,CN=OpenSCDP"); © Copyright 2003 - 2010 CardContact Software & System Consulting, Minden, Germany |