Class TrustedKey

    • Constructor Summary

      Constructors 
      Constructor Description
      TrustedKey()  
    • Constructor Detail

      • TrustedKey

        public TrustedKey()
    • Method Detail

      • create

        public static TrustedKey create​(CryptoType cryptoType,
                                        java.security.PublicKey publicKey)
        Creates new trusted key instance.
        Parameters:
        cryptoType - crypto to use
        publicKey - public key to use
        Returns:
        newly created trusted key
      • id

        public java.lang.String id()
        Key id.
        Returns:
        key id
      • publicKeyString

        public java.lang.String publicKeyString()
        Returns public key in a string format (encoded).
        Returns:
        public key string
      • cryptoType

        public abstract CryptoType cryptoType()
        Crypto type, the algorithm used for signing and verification.
        Returns:
        crypto type
      • publicKey

        public abstract java.security.PublicKey publicKey()
        Returns public key.
        Returns:
        public key