start page | rating of books | rating of authors | reviews | copyrights

Book Home Java Security Search this book

D.3. Package java.security.interfaces

Interface java.security.interfaces.DSAKey

This interface represents public and private keys that are suitable for use in DSA signature algorithms. This interface allows you to retrieve DSA-specific information from a suitable DSA key.

Interface Definition

public interface java.security.interfaces.DSAKey {
	
	// Instance Methods
	public DSAParams getParams();
}

See also: PrivateKey, PublicKey

Interface java.security.interfaces.DSAKeyPairGenerator

This interface represents key generators that can be used to generate pairs of DSA keys. Key pair generators that implement this interface can be initialized with information specific to DSA key generation.

Interface Definition

public interface java.security.interfaces.DSAKeyPairGenerator {

	// Instance Methods
	public void initialize(DSAParams, SecureRandom);
	public void initialize(int, boolean, SecureRandom);
}

See also: KeyPairGenerator

Interface java.security.interfaces.DSAParams

Classes that implement this interface allow you to obtain the three variables that are common to both DSA public and private keys.

Interface Definition

public interface java.security.interfaces.DSAParams {

	// Instance Methods
	public BigInteger getP();
	public BigInteger getQ();
	public BigInteger getG();
}

See also: DSAPrivateKey, DSAPublicKey

Interface java.security.interfaces.DSAPrivateKey

Classes that implement this interface allow you to retrieve the private key parameter used to calculate a DSA private key.

Interface Definition

public interface java.security.interfaces.DSAPrivateKey {

	// Instance Methods
	public BigInteger getX();
}

See also: DSAParams, DSAPublicKey

Interface java.security.interfaces.DSAPublicKey

Classes that implement this interface allow you to retrieve the public key parameter used to calculate a DSA public key.

Interface Definition

public interface java.security.interfaces.DSAPublicKey {

	// Instance Methods
	public BigInteger getY();
}

See also: DSAParams, DSAPrivateKey

Interface java.security.interfaces.RSAPrivateKey

RSAPrivateKey represents a private key, suitable for use with RSA cryptographic operations. Use of this class requires a third-party security provider.

Interface Definition

public abstract interface java.security.interfaces.RSAPrivateKey
	implements java.security.PrivateKey {

	// Instance Methods
	public abstract BigInteger getModulus();
	public abstract BigInteger getPrivateExponent();
}

See also: PrivateKey, RSAPublicKey

Interface java.security.interfaces.RSAPublicKey

This class represents an RSA public key, suitable for use with an RSA cryptographic algorithm. You must have a third-party security provider to use this class.

Interface Definition

public abstract interface java.security.interfaces.RSAPublicKey
	implements java.security.PublicKey {

	// Instance Methods
	public abstract BigInteger getModulus();
	public abstract BigInteger getPublicExponent();
}

See also: PublicKey, RSAPrivateKey



Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.







Interfac