Example usage for Java javax.crypto KeyAgreement fields, constructors, methods, implement or subclass
The text is from its open source code.
Key | doPhase(Key key, boolean lastPhase) Executes the next phase of this key agreement with the given key that was received from one of the other parties involved in this key agreement. |
byte[] | generateSecret() Generates the shared secret and returns it in a new buffer. |
SecretKey | generateSecret(String algorithm) Creates the shared secret and returns it as a SecretKey object of the specified algorithm. |
KeyAgreement | getInstance(String algorithm, String provider) Returns a KeyAgreement object that implements the specified key agreement algorithm. |
KeyAgreement | getInstance(String algorithm, Provider provider) Returns a KeyAgreement object that implements the specified key agreement algorithm. |
KeyAgreement | getInstance(String algorithm) Returns a KeyAgreement object that implements the specified key agreement algorithm. |
void | init(Key key) Initializes this key agreement with the given key, which is required to contain all the algorithm parameters required for this key agreement. |