Name

Class javax.crypto.SealedObject

Synopsis

A sealed object is a container for another object. The contained object is serialized and then encrypted using a cipher. You can construct a sealed object using any serializable object and a cipher that is initialized for encryption. To decrypt the contained object, call the getObject( ) method with a cipher that is initialized for decryption.

Class Definition

public class javax.crypto.SealedObject
	extends java.lang.Object
	implements java.io.Serializable {

	// Constructors
	public SealedObject(Serializable, Cipher);

	// Instance Methods
	public final String getAlgorithm(  );
	public final Object getObject(Cipher);
	public final Object getObject(Key);
	public final Object getObject(Key, String);
}

See also

PublicKey, PrivateKey

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.