Class KnownHostMatchers.HashedHostMatcher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String hash  
      private java.lang.String salt  
      private byte[] saltyBytes  
      private MAC sha1  
    • Constructor Summary

      Constructors 
      Constructor Description
      HashedHostMatcher​(java.lang.String hash)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private byte[] getSaltyBytes()  
      private java.lang.String hashHost​(java.lang.String host)  
      boolean match​(java.lang.String hostname)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sha1

        private final MAC sha1
      • hash

        private final java.lang.String hash
      • salt

        private final java.lang.String salt
      • saltyBytes

        private byte[] saltyBytes
    • Method Detail

      • match

        public boolean match​(java.lang.String hostname)
                      throws java.io.IOException
        Specified by:
        match in interface KnownHostMatchers.HostMatcher
        Throws:
        java.io.IOException
      • hashHost

        private java.lang.String hashHost​(java.lang.String host)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getSaltyBytes

        private byte[] getSaltyBytes()