Tag Archives: Java-security package

The isCertificateEntry() method of java.security.KeyStore class is used to check if the specified Certificate entry is present in this KeyStore instance. It returns a boolean… Read More
The getProvider() method of java.security.KeyStore class is used to get the Provider associated with this KeyStore instance. Syntax: public final Provider getProvider() Parameter: This method… Read More
The getCertificateAlias() method of java.security.KeyStore class is used to get name of the first KeyStore entry which has the specified Certificate. Syntax: public final String… Read More
The getType() method of java.security.KeyStore class is used to get the type of this keystore. Syntax: public final String getType() Parameter: This method accepts nothing… Read More
The isKeyEntry() method of java.security.KeyStore class is used to check if the particular specified key entry is present. It returns a boolean value stating the… Read More
The getEntry() method of java.security.KeyStore class is used to get the keystore entry for this instance with the help of the specified alias and the… Read More
The getKey() method of java.security.KeyStore class is used to get the key associated with the given alias, using the given password to recover it. Syntax:… Read More
The getDefaultType() method of java.security.KeyStore class is used to provide the default instance of Keystore class. Syntax: public static final String getDefaultType() Parameter: This method… Read More
The getCreationDate() method of java.security.KeyStore class is used to get the date of creation of the specified entry with the help of the specified alias… Read More
The method getProvider() of java.security.MessageDigest class is used to get the provider of this message digest. Syntax: public final Provider getProvider() Return Value: This method… Read More
The setMessageDigest() method of java.security.DigestInputStream class used to assign the specified MessageDigest to DigestInputStream object. Syntax: public void setMessageDigest(MessageDigest digest) Return Value: This method has… Read More
The getDigestLength() method of MessageDigest class is used to get the size of object of message digest object in bytes. Syntax: public final int getDigestLength()… Read More
The aliases() method of java.security.KeyStore class provides alias name associated with this keystore object. Syntax: public final Enumeration aliases() throws KeyStoreException Return Value: This method… Read More
The getCertificateChain() method of java.security.KeyStore class is used to provide the certificate chain for the requested alias. . Syntax: public final Certificate[] getCertificateChain(String alias) throws… Read More
The toString() method of java.security.DigestInputStream class provide the object of DigestInputStream in string format. Syntax: public String toString() Return Value: This method returns the object… Read More