Skip to Content
Java Security
book

Java Security

by Scott Oaks
May 1998
Intermediate to advanced
469 pages
14h 57m
English
O'Reilly Media, Inc.
Content preview from Java Security

Name

Class javax.crypto.KeyAgreementSpi

Synopsis

This is the Security Provider Interface class for the KeyAgreement class. If you want to implement a key agreement algorithm, create a subclass of this class and register it with an appropriate security provider.

Class Definition

public abstract class javax.crypto.KeyAgreementSpi
	extends java.lang.Object {

	// Constructors
	public KeyAgreementSpi();

	// Protected Instance Methods
	protected abstract Key engineDoPhase(Key, boolean);
	protected abstract byte[] engineGenerateSecret();
	protected abstract int engineGenerateSecret(byte[], int);
	protected abstract void engineInit(Key, SecureRandom);
	protected abstract void engineInit(Key, AlgorithmParameterSpec,
						SecureRandom);
}

See also:

AlgorithmParameterSpec, Key, KeyAgreement, SecureRandom

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Security Handbook

Java Security Handbook

Jamie Jaworski, Paul J. Perrone, Venkata S.R. Krishna Chaganti

Publisher Resources

ISBN: 1565924037Supplemental ContentCatalog PageErrata