Name
PublicKey
Synopsis
This
interface represents a public
cryptographic key. It extends the
Key interface, but does not add any new methods.
The interface exists in order to create a strong distinction between
public and private keys. See also PrivateKey.
Figure 14-34. java.security.PublicKey
public interface PublicKey extends Key { // Public Constants 1.2 public static final long serialVersionUID; =7187392471159151072 }
Implementations
java.security.interfaces.DSAPublicKey,
java.security.interfaces.ECPublicKey,
java.security.interfaces.RSAPublicKey,
javax.crypto.interfaces.DHPublicKey
Passed To
Identity.setPublicKey( ),
IdentityScope.getIdentity( ),
KeyPair.KeyPair( ), Signature.initVerify(
), SignatureSpi.engineInitVerify( ),
SignedObject.verify( ),
java.security.cert.Certificate.verify( ),
java.security.cert.PKIXCertPathBuilderResult.PKIXCertPathBuilderResult(
),
java.security.cert.PKIXCertPathValidatorResult.PKIXCertPathValidatorResult(
), java.security.cert.TrustAnchor.TrustAnchor(
),
java.security.cert.X509CertSelector.setSubjectPublicKey(
), java.security.cert.X509CRL.verify( )
Returned By
java.security.Certificate.getPublicKey( ),
Identity.getPublicKey( ),
KeyFactory.generatePublic( ),
KeyFactorySpi.engineGeneratePublic( ),
KeyPair.getPublic( ),
java.security.cert.Certificate.getPublicKey( ),
java.security.cert.PKIXCertPathValidatorResult.getPublicKey(
), java.security.cert.TrustAnchor.getCAPublicKey( ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access