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.

java.security.PublicKey

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( ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.