Class RSAConfidentialKey

    • Constructor Detail

      • RSAConfidentialKey

        protected RSAConfidentialKey​(String id)
      • RSAConfidentialKey

        protected RSAConfidentialKey​(Class owner,
                                     String shortName)
    • Method Detail

      • getPrivateKey

        protected RSAPrivateKey getPrivateKey()
        Obtains the private key (lazily.)

        This method is not publicly exposed as per the design principle of ConfidentialKey. Instead of exposing private key, define methods that use them in specific way, such as RSADigitalSignatureConfidentialKey.

        Throws:
        Error - If key cannot be loaded for some reasons, we fail.
      • getEncodedPublicKey

        public String getEncodedPublicKey()
        Gets base64-encoded public key.