Class KeyPairWrapper

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.security.KeyPair kp  
      private KeyType type  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      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
    • Field Detail

      • kp

        private final java.security.KeyPair kp
    • 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.