Uses of Interface java.security.Certificate

Uses in package java.security

Constructors with parameter type java.security.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.Certificate

void
Adds a certificate for this identity.
String
Determines if the keystore contains the specified certificate entry and returns the alias.
void
Assign the certificate to the alias in the keystore.
void
KeyStoreSpi.engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
Assign the key to the alias in the keystore.
void
KeyStoreSpi.engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
Assign the key to the alias in the keystore, protecting it with the given password.
void
Initializes this object for verification, using the public key from the given certificate.

If the certificate is of type X.509 and has a key usage extension field marked as critical, and the value of the key usage extension field implies that the public key in the certificate and its corresponding private key are not supposed to be used for digital signatures, an InvalidKeyException is thrown.

void
Removes a certificate from this identity.

First, if there is a security manager, its checkSecurityAccess() method is called with "removeIdentityCertificate" as its argument to see if it's ok to remove a certificate.

void
Assign the certificate to the alias in the keystore.
void
KeyStore.setKeyEntry(String alias, byte[] key, Certificate[] chain)
Assign the key to the alias in the keystore.
void
KeyStore.setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
Assign the key to the alias in the keystore, protecting it with the given password.

Methods with return type java.security.Certificate

Certificate[]
Returns a copy of all the certificates for this identity.
Certificate[]
This method returns the list of digital certificates that can be used to verify the signatures of code loaded under this CodeSource.