Class SimpleIdentity

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Define serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • passwd

        private String passwd
    • Constructor Detail

      • SimpleIdentity

        public SimpleIdentity()
    • Method Detail

      • getUserName

        public String getUserName()
        Description copied from class: Identity
        Get the user name.
        Specified by:
        getUserName in class Identity
        Returns:
        username.
      • check

        public boolean check​(Identity identity)
                      throws Exception
        Description copied from class: Identity
        check the identity.
        Specified by:
        check in class Identity
        Parameters:
        identity - the identity to check
        Returns:
        true if ok
        Throws:
        Exception - the exception
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        Description copied from interface: Streamable
        The object implements the readFrom method to restore its contents from the input stream.
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.
      • writeTo

        public void writeTo​(OutputStream os)
                     throws IOException
        Description copied from interface: Streamable
        The object implements the writeTo method to write its contents to the output stream.
        Parameters:
        os - the stream to write the object to
        Throws:
        IOException - an error occurs during IO operation.