Class PublicKey
java.lang.Object
com.codename1.security.Key
com.codename1.security.PublicKey
A public key -- paired with a PrivateKey to form a key pair. Carries the
algorithm name ("RSA" or "EC") and the encoded key bytes.
For interop with PEM files (-----BEGIN PUBLIC KEY-----) feed the
X.509-SubjectPublicKeyInfo (SPKI) DER bytes to fromX509(String, byte[]); for raw RSA
modulus/exponent use rsa(byte[]).
-
Field Summary
Fields -
Method Summary
Methods inherited from class Key
getAlgorithm, getEncoded, getFormat
-
Field Details
-
RSA
-
EC
-
-
Method Details
-
fromX509
-
rsa
Convenience: build an RSAPublicKeyfrom afromX509(String, byte[])X.509 blob.
-