javax > javax.crypto > javax.crypto.keyagreement >

Class: javax.crypto.KeyAgreement
    java.lang.Object
       javax.crypto.KeyAgreement


public class KeyAgreement extends Object


FIELDS:

CONSTRUCTORS:
protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, String algorithm)


METHODS:
public final Key doPhase(Key key, boolean lastPhase)
Throws: InvalidKeyException
Throws: IllegalStateException

public final byte[] generateSecret()
Throws: IllegalStateException

public final int generateSecret(byte[] sharedSecret, int offset)
Throws: IllegalStateException
Throws: ShortBufferException

public final SecretKey generateSecret(String algorithm)
Throws: IllegalStateException
Throws: NoSuchAlgorithmException
Throws: InvalidKeyException

public final String getAlgorithm()

public static final KeyAgreement getInstance(String algorithm)
Throws: NullPointerException
Throws: NoSuchAlgorithmException

public static final KeyAgreement getInstance(String algorithm, String provider)
Throws: NullPointerException
Throws: NoSuchAlgorithmException
Throws: NoSuchProviderException
Throws: IllegalArgumentException

public static final KeyAgreement getInstance(String algorithm, Provider provider)
Throws: NullPointerException
Throws: NoSuchAlgorithmException
Throws: IllegalArgumentException

public final Provider getProvider()

public final void init(Key key)
Throws: InvalidKeyException

public final void init(Key key, SecureRandom random)
Throws: InvalidKeyException

public final void init(Key key, AlgorithmParameterSpec params)
Throws: InvalidKeyException
Throws: InvalidAlgorithmParameterException

public final void init(Key key, AlgorithmParameterSpec params, SecureRandom random)
Throws: InvalidKeyException
Throws: InvalidAlgorithmParameterException


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net