Skip navigation links
CryptoPro JCP.
Public API.
ru.CryptoPro.JCP.Key

Class KeyTwix

    • Constructor Summary

      Constructors 
      Constructor and Description
      KeyTwix(java.security.PrivateKey key, java.security.cert.X509Certificate cert)
      ctor.
      KeyTwix(java.lang.String alias)
      load keyTwix from HDImageStore without password.
      KeyTwix(java.lang.String alias, java.lang.String password)
      load keyTwix from HDImageStore.
      KeyTwix(java.lang.String alias, java.lang.String password, java.io.InputStream in, java.lang.String keyStoreType)
      load keyTwix from keyStore.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.security.cert.X509Certificate getCert()
      X509Certificate
      java.security.PrivateKey getPrivate()
      private Key
      java.security.PublicKey getPublic()
      public Key
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyTwix

        public KeyTwix(java.security.PrivateKey key,
                       java.security.cert.X509Certificate cert)
        ctor.
        Parameters:
        key - private Key
        cert - X509Certificate
      • KeyTwix

        public KeyTwix(java.lang.String alias,
                       java.lang.String password,
                       java.io.InputStream in,
                       java.lang.String keyStoreType)
                throws java.lang.Exception
        load keyTwix from keyStore.
        Parameters:
        alias - key Twix name
        password - password
        in - input stream
        keyStoreType - key Store Type
        Throws:
        java.lang.Exception - cant read KeyTwix
      • KeyTwix

        public KeyTwix(java.lang.String alias,
                       java.lang.String password)
                throws java.lang.Exception
        load keyTwix from HDImageStore.
        Parameters:
        alias - key Twix name
        password - password
        Throws:
        java.lang.Exception - cant read KeyTwix
      • KeyTwix

        public KeyTwix(java.lang.String alias)
                throws java.lang.Exception
        load keyTwix from HDImageStore without password.
        Parameters:
        alias - key Twix name
        Throws:
        java.lang.Exception - cant read KeyTwix
    • Method Detail

      • getPrivate

        public java.security.PrivateKey getPrivate()
        private Key
        Returns:
        private Key
      • getPublic

        public java.security.PublicKey getPublic()
        public Key
        Returns:
        public Key
      • getCert

        public java.security.cert.X509Certificate getCert()
        X509Certificate
        Returns:
        X509Certificate
Copyright Crypto-Pro.
All rights reserved.