KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > crypto > KeyAgreement

javax.crypto
Class KeyAgreement

java.lang.Object
  extended by javax.crypto.KeyAgreement
See Also:
Top Examples, Source Code, KeyGenerator, SecretKey

public final Key doPhase(Key key,
                         boolean lastPhase)
                  throws InvalidKeyException,
                         IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final byte[] generateSecret()
                            throws IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int generateSecret(byte[] sharedSecret,
                                int offset)
                         throws IllegalStateException,
                                ShortBufferException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final SecretKey generateSecret(String algorithm)
                               throws IllegalStateException,
                                      NoSuchAlgorithmException,
                                      InvalidKeyException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final String getAlgorithm()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final KeyAgreement getInstance(String algorithm)
                                      throws NoSuchAlgorithmException
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final KeyAgreement getInstance(String algorithm,
                                             String provider)
                                      throws NoSuchAlgorithmException,
                                             NoSuchProviderException
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final KeyAgreement getInstance(String algorithm,
                                             Provider provider)
                                      throws NoSuchAlgorithmException
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Provider getProvider()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void init(Key key)
                throws InvalidKeyException
See Also:
SecureRandom
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void init(Key key,
                       SecureRandom random)
                throws InvalidKeyException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void init(Key key,
                       AlgorithmParameterSpec params)
                throws InvalidKeyException,
                       InvalidAlgorithmParameterException
See Also:
SecureRandom
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void init(Key key,
                       AlgorithmParameterSpec params,
                       SecureRandom random)
                throws InvalidKeyException,
                       InvalidAlgorithmParameterException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected KeyAgreement(KeyAgreementSpi keyAgreeSpi,
                       Provider provider,
                       String algorithm)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags