Lines Matching defs:key

36  * of a particular key agreement algorithm.
40 * key generators (<code>KeyPairGenerator</code> or
42 * an intermediate phase of the key agreement protocol
45 * <p> For each of the correspondents in the key exchange,
47 * needs to be called. For example, if the key exchange is with one other
50 * If the key exchange is
54 * There may be any number of parties involved in a key exchange.
66 * Initializes this key agreement with the given key and source of
67 * randomness. The given key is required to contain all the algorithm
68 * parameters required for this key agreement.
70 * <p> If the key agreement algorithm requires random bytes, it gets them
76 * @param key the party's private information. For example, in the case
77 * of the Diffie-Hellman key agreement, this would be the party's own
78 * Diffie-Hellman private key.
81 * @exception InvalidKeyException if the given key is
82 * inappropriate for this key agreement, e.g., is of the wrong type or
85 protected abstract void engineInit(Key key, SecureRandom random)
89 * Initializes this key agreement with the given key, set of
92 * @param key the party's private information. For example, in the case
93 * of the Diffie-Hellman key agreement, this would be the party's own
94 * Diffie-Hellman private key.
95 * @param params the key agreement parameters
98 * @exception InvalidKeyException if the given key is
99 * inappropriate for this key agreement, e.g., is of the wrong type or
102 * are inappropriate for this key agreement.
104 protected abstract void engineInit(Key key, AlgorithmParameterSpec params,
109 * Executes the next phase of this key agreement with the given
110 * key that was received from one of the other parties involved in this key
113 * @param key the key for this phase. For example, in the case of
115 * Diffie-Hellman public key.
117 * phase of this key agreement.
119 * @return the (intermediate) key resulting from this phase, or null if
120 * this phase does not yield a key
122 * @exception InvalidKeyException if the given key is inappropriate for
124 * @exception IllegalStateException if this key agreement has not been
127 protected abstract Key engineDoPhase(Key key, boolean lastPhase)
135 * can be reused for further key agreements. Unless this key agreement is
138 * subsequent key agreements.
142 * @exception IllegalStateException if this key agreement has not been
158 * can be reused for further key agreements. Unless this key agreement is
161 * subsequent key agreements.
169 * @exception IllegalStateException if this key agreement has not been
179 * Creates the shared secret and returns it as a secret key object
184 * can be reused for further key agreements. Unless this key agreement is
187 * subsequent key agreements.
189 * @param algorithm the requested secret key algorithm
191 * @return the shared secret key
193 * @exception IllegalStateException if this key agreement has not been
195 * @exception NoSuchAlgorithmException if the requested secret key
197 * @exception InvalidKeyException if the shared secret key material cannot
198 * be used to generate a secret key of the requested algorithm type (e.g.,
199 * the key material is too short)