Uses of Class java.security.cert.Certificate

Uses in package java.security

Constructors with parameter type java.security.cert.Certificate

CodeSource.CodeSource(URL location, Certificate[] certs)
This creates a new instance of CodeSource that loads code from the specified URL location and which uses the specified certificates for verifying signatures.
Create a new instance with all the information necessary to resolve it to an instance of the proper class at a future time.

Methods with parameter type java.security.cert.Certificate

String
Determines if the keystore contains the specified certificate entry and returns the alias.
void
Verify a signature with a designated Certificate.

Methods with return type java.security.cert.Certificate

Certificate
Gets a Certificate for the specified alias.
Certificate[]
Gets a Certificate chain for the specified alias.
Certificate
Gets a Certificate for the specified alias.
Certificate[]
Gets a Certificate chain for the specified alias.
Certificate[]
This method returns the list of digital certificates that can be used to verify the signatures of code loaded under this CodeSource.
Certificate[]
Return the certificates of the unresolved permission.

Uses in package java.security.cert

Classes derived from java.security.cert.Certificate

class
X509Certificate is the abstract class for X.509 certificates.

Methods with parameter type java.security.cert.Certificate

void
PKIXCertPathChecker.check(Certificate cert, Collection unresolvedCritExts)
Checks a certificate, removing any critical extensions that are resolved in this check.
boolean
Determines whether or not the specified Certificate is revoked.
boolean
Match a certificate according to this selector's criteria.
boolean
Match a certificate.

Methods with return type java.security.cert.Certificate

Certificate
Generates a Certificate based on the encoded data read from the InputStream.
Certificate
Generates a Certificate from the encoded data read from an InputStream.

Uses in package javax.net.ssl

Methods with return type java.security.cert.Certificate

Certificate[]
Returns the local certificates being used in this connection.
Certificate[]
Returns the certificates used on the local side in this connection.
Certificate[]
Returns the chain of certificates that the local side used in the handshake, or null if none were used.
Certificate[]
Returns the peer's certificates being used in this connection.
Certificate[]
Returns the chain of certificates that the remote side used in the handshake, or null if none were used.
Certificate[]
Returns the certificates sent by the other party.

Uses in package java.net

Methods with return type java.security.cert.Certificate

Certificate[]
Returns an array of Certificate objects for the jar file entry specified by this URL or null if there are none

Uses in package java.util.jar

Methods with return type java.security.cert.Certificate

Certificate[]
Returns a copy of the certificates set for this entry.

Uses in package javax.crypto

Methods with parameter type java.security.cert.Certificate

void
Cipher.init(int opmode, Certificate certificate)
Initialize this cipher with the public key from the given certificate.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

As per the Java 1.4 specification, if cert is an instance of an X509Certificate and its key usage extension field is incompatible with opmode then an InvalidKeyException is thrown.

If this cipher requires any random bytes (for example for an initilization vector) than the SecureRandom with the highest priority is used as the source of these bytes.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void
Cipher.init(int opmode, Certificate certificate, SecureRandom random)
Initialize this cipher with the public key from the given certificate and the specified source of randomness.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

As per the Java 1.4 specification, if cert is an instance of an X509Certificate and its key usage extension field is incompatible with opmode then an InvalidKeyException is thrown.

If this cipher requires any random bytes (for example for an initilization vector) than the SecureRandom with the highest priority is used as the source of these bytes.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.