Class SimplePgp

  • All Implemented Interfaces:
    ICrypto

    @Accessors
    public class SimplePgp
    extends java.lang.Object
    implements ICrypto
    • Constructor Summary

      Constructors 
      Constructor Description
      SimplePgp​(byte[] src, java.lang.String publicKey)  
      SimplePgp​(byte[] src, java.lang.String privateKey, java.lang.String passwd)  
      SimplePgp​(ICrypto c, java.lang.String publicKey)  
      SimplePgp​(ICrypto c, java.lang.String privateKey, java.lang.String passwd)  
    • Constructor Detail

      • SimplePgp

        public SimplePgp​(byte[] src,
                         java.lang.String publicKey)
      • SimplePgp

        public SimplePgp​(byte[] src,
                         java.lang.String privateKey,
                         java.lang.String passwd)
      • SimplePgp

        public SimplePgp​(ICrypto c,
                         java.lang.String publicKey)
      • SimplePgp

        public SimplePgp​(ICrypto c,
                         java.lang.String privateKey,
                         java.lang.String passwd)
    • Method Detail

      • decode

        public byte[] decode()
        Description copied from interface: ICrypto
        decode
        Specified by:
        decode in interface ICrypto
        Returns:
      • encode

        public byte[] encode()
        Description copied from interface: ICrypto
        encode
        Specified by:
        encode in interface ICrypto
        Returns:
      • getData

        public byte[] getData()
        Description copied from interface: ICrypto
        get data
        Specified by:
        getData in interface ICrypto
        Returns:
      • setData

        public ICrypto setData​(byte[] src)
        Description copied from interface: ICrypto
        set data
        Specified by:
        setData in interface ICrypto
      • getC

        @Pure
        public ICrypto getC()
      • setC

        public void setC​(ICrypto c)
      • getKey

        @Pure
        public java.lang.String getKey()
      • setKey

        public void setKey​(java.lang.String key)
      • getPass

        @Pure
        public java.lang.String getPass()
      • setPass

        public void setPass​(java.lang.String pass)
      • getSrc

        @Pure
        public byte[] getSrc()
      • setSrc

        public void setSrc​(byte[] src)