Class KeyPairWrapper

    • Constructor Summary

      Constructors 
      Constructor Description
      KeyPairWrapper​(java.security.KeyPair kp)  
      KeyPairWrapper​(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)  
    • Method Summary

      Modifier and Type Method Description
      java.security.PrivateKey getPrivate()  
      java.security.PublicKey getPublic()  
      KeyType getType()  
      • Methods inherited from class java.lang.Object

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

      • KeyPairWrapper

        public KeyPairWrapper​(java.security.KeyPair kp)
      • KeyPairWrapper

        public KeyPairWrapper​(java.security.PublicKey publicKey,
                              java.security.PrivateKey privateKey)
    • Method Detail

      • getPrivate

        public java.security.PrivateKey getPrivate()
        Specified by:
        getPrivate in interface KeyProvider
        Returns:
        the private key.
      • getPublic

        public java.security.PublicKey getPublic()
        Specified by:
        getPublic in interface KeyProvider
        Returns:
        the public key.