Package com.yubico.yubikit.core.keys
Class PublicKeyValues.Rsa
java.lang.Object
com.yubico.yubikit.core.keys.PublicKeyValues
com.yubico.yubikit.core.keys.PublicKeyValues.Rsa
- Enclosing class:
- PublicKeyValues
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yubico.yubikit.core.keys.PublicKeyValues
PublicKeyValues.Cv25519, PublicKeyValues.Ec, PublicKeyValues.Rsa -
Field Summary
Fields inherited from class com.yubico.yubikit.core.keys.PublicKeyValues
bitLength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Instantiates a JCA PublicKey using the contained parameters.toString()Methods inherited from class com.yubico.yubikit.core.keys.PublicKeyValues
fromPublicKey, getBitLength
-
Constructor Details
-
Rsa
-
-
Method Details
-
getModulus
-
getPublicExponent
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin classPublicKeyValues
-
toPublicKey
Description copied from class:PublicKeyValuesInstantiates a JCA PublicKey using the contained parameters. This requires a SecurityProvider capable of handling the key type.- Specified by:
toPublicKeyin classPublicKeyValues- Returns:
- a public key, usable for cryptographic operations
- Throws:
NoSuchAlgorithmException- if no Provider supports an implementation for the specified algorithm.InvalidKeySpecException- if the given key specification is inappropriate for this key factory to produce a public key.
-
toString
-