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.CipherSpi

Synopsis

This class is the Security Provider Interface of the Cipher class. To implement a particular cipher algorithm, create a subclass of this class and register the class with an appropriate security provider. Like all SPI classes, the methods that begin with engine are called by their corresponding method (without engine) from the Cipher class.

Class Definition

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

	// Constructors
	public CipherSpi();

	// Protected Instance Methods
	protected abstract byte[] engineDoFinal(byte[], int, int);
	protected abstract int engineDoFinal(byte[], int, int,
						byte[], int);
	protected abstract int engineGetBlockSize();
	protected abstract byte[] engineGetIV();
	protected abstract int engineGetOutputSize(int);
	protected abstract void engineInit(int, Key, SecureRandom);
	protected abstract void engineInit(int, Key, 
					AlgorithmParameterSpec, SecureRandom);
	protected abstract void engineInit(int, Key, AlgorithmParameters,
					 SecureRandom);
	protected abstract void engineSetMode(String);
	protected abstract void engineSetPadding(String);
	protected abstract byte[] engineUpdate(byte[], int, int);
	protected abstract int engineUpdate(byte[], int, int, byte[], int);
}

See also:

AlgorithmParameterSpec, Cipher, Key, 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