Lines Matching defs:key
59 PublicKey key)
62 if (key instanceof BCDSAPublicKey)
64 return ((BCDSAPublicKey)key).engineGetKeyParameters();
67 if (key instanceof DSAPublicKey)
69 return new BCDSAPublicKey((DSAPublicKey)key).engineGetKeyParameters();
74 byte[] bytes = key.getEncoded();
82 throw new InvalidKeyException("can't identify DSA public key: " + key.getClass().getName());
87 PrivateKey key)
90 if (key instanceof DSAPrivateKey)
92 DSAPrivateKey k = (DSAPrivateKey)key;
98 throw new InvalidKeyException("can't identify DSA private key.");