Class PskIdentity


  • public class PskIdentity
    extends java.lang.Object
    • Field Detail

      • identity

        protected byte[] identity
      • obfuscatedTicketAge

        protected long obfuscatedTicketAge
    • Constructor Detail

      • PskIdentity

        public PskIdentity​(byte[] identity,
                           long obfuscatedTicketAge)
    • Method Detail

      • getEncodedLength

        public int getEncodedLength()
      • getIdentity

        public byte[] getIdentity()
      • getObfuscatedTicketAge

        public long getObfuscatedTicketAge()
      • encode

        public void encode​(java.io.OutputStream output)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static PskIdentity parse​(java.io.InputStream input)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object