Class AsymmetricKeyPairFactoryEncoded<PR extends PrivateKey,​PU extends PublicKey,​PAIR extends AbstractAsymmetricKeyPair<PR,​PU>>

    • Method Detail

      • asData

        public byte[] asData​(PR privateKey)
        Parameters:
        privateKey - the PrivateKey to serialize.
        Returns:
        the serialized binary data.
      • createPrivateKey

        public PR createPrivateKey​(byte[] data)
        Parameters:
        data - the PrivateKey as raw byte array.
        Returns:
        the deserialized PrivateKey.
      • asData

        public byte[] asData​(PU publicKey)
        Parameters:
        publicKey - the PublicKey to serialize.
        Returns:
        the serialized binary data.
      • createPublicKey

        public PU createPublicKey​(byte[] data)
        Parameters:
        data - the PublicKey as raw byte array.
        Returns:
        the deserialized PublicKey.
      • asData

        public byte[] asData​(PAIR keyPair)
        Parameters:
        keyPair - the AsymmetricKeyPair to serialize.
        Returns:
        the serialized binary data.