Class SftpFileSystem.DefaultUserPrincipal

  • All Implemented Interfaces:
    java.nio.file.attribute.UserPrincipal, java.security.Principal
    Direct Known Subclasses:
    SftpFileSystem.DefaultGroupPrincipal
    Enclosing class:
    SftpFileSystem

    public static class SftpFileSystem.DefaultUserPrincipal
    extends java.lang.Object
    implements java.nio.file.attribute.UserPrincipal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultUserPrincipal​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • DefaultUserPrincipal

        public DefaultUserPrincipal​(java.lang.String name)
    • Method Detail

      • getName

        public final java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class java.lang.Object