Class RSAPublicKeyImpl

  • All Implemented Interfaces:
    SdkmsCipherKey, SdkmsKey, java.io.Serializable, java.security.interfaces.RSAKey, java.security.interfaces.RSAPublicKey, java.security.Key, java.security.PublicKey

    public class RSAPublicKeyImpl
    extends sun.security.x509.X509Key
    implements java.security.interfaces.RSAPublicKey, SdkmsCipherKey
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class sun.security.x509.X509Key

        algid, encodedKey, key
      • Fields inherited from interface java.security.interfaces.RSAPublicKey

        serialVersionUID
    • Constructor Summary

      Constructors 
      Constructor Description
      RSAPublicKeyImpl​(com.fortanix.sdkms.v1.model.KeyObject keyObject)  
      RSAPublicKeyImpl​(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)  
      RSAPublicKeyImpl​(java.lang.String keyId, java.lang.Integer keySize, byte[] encoded, java.lang.String transientKey)
      Deprecated.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAlgorithm()  
      com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()  
      java.lang.Integer getKeySize()  
      java.math.BigInteger getModulus()  
      java.math.BigInteger getPublicExponent()  
      protected void parseKeyBits()
      Parse the key.
      • Methods inherited from class sun.security.x509.X509Key

        decode, decode, encode, encode, equals, getAlgorithmId, getEncoded, getEncodedInternal, getFormat, getKey, hashCode, parse, setKey, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Key

        getEncoded, getFormat
      • Methods inherited from interface java.security.interfaces.RSAKey

        getParams
    • Constructor Detail

      • RSAPublicKeyImpl

        public RSAPublicKeyImpl​(com.fortanix.sdkms.v1.model.SobjectDescriptor descriptor)
      • RSAPublicKeyImpl

        public RSAPublicKeyImpl​(com.fortanix.sdkms.v1.model.KeyObject keyObject)
      • RSAPublicKeyImpl

        @Deprecated
        public RSAPublicKeyImpl​(java.lang.String keyId,
                                java.lang.Integer keySize,
                                byte[] encoded,
                                java.lang.String transientKey)
                         throws java.security.InvalidKeyException
        Deprecated.
        Throws:
        java.security.InvalidKeyException
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
        Overrides:
        getAlgorithm in class sun.security.x509.X509Key
      • getModulus

        public java.math.BigInteger getModulus()
        Specified by:
        getModulus in interface java.security.interfaces.RSAKey
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
        Specified by:
        getPublicExponent in interface java.security.interfaces.RSAPublicKey
      • parseKeyBits

        protected void parseKeyBits()
                             throws java.security.InvalidKeyException
        Parse the key. Called by X509Key.
        Overrides:
        parseKeyBits in class sun.security.x509.X509Key
        Throws:
        java.security.InvalidKeyException
      • getKeyDescriptor

        public com.fortanix.sdkms.v1.model.SobjectDescriptor getKeyDescriptor()
        Specified by:
        getKeyDescriptor in interface SdkmsKey