Class PublicKeyEntry

java.lang.Object
com.sshtools.common.util.Entry<SshPublicKey>
com.sshtools.common.publickey.authorized.PublicKeyEntry

public class PublicKeyEntry extends com.sshtools.common.util.Entry<SshPublicKey>
  • Method Details

    • addEnvironmentVariable

      public void addEnvironmentVariable(String name, String value)
    • removeEnvironmentVariable

      public void removeEnvironmentVariable(String name)
    • getFormattedEntry

      public String getFormattedEntry() throws IOException
      Specified by:
      getFormattedEntry in class com.sshtools.common.util.Entry<SshPublicKey>
      Throws:
      IOException
    • supportsRestrictedOption

      protected boolean supportsRestrictedOption(Option<?> option)
    • supportsPty

      public boolean supportsPty()
    • supportsPortForwarding

      public boolean supportsPortForwarding()
    • supportsAgentForwarding

      public boolean supportsAgentForwarding()
    • supportsUserRc

      public boolean supportsUserRc()
    • supportsX11Forwarding

      public boolean supportsX11Forwarding()
    • isCertAuthority

      public boolean isCertAuthority()
    • requiresCommandExecution

      public boolean requiresCommandExecution()
    • getCommand

      public String getCommand()
    • setCommand

      public void setCommand(String command)
    • addConnectFrom

      public void addConnectFrom(String remoteAddress)
    • removeConnectFrom

      public void removeConnectFrom(String remoteAddress)
    • canConnectFrom

      public boolean canConnectFrom(String remoteAddress) throws IOException
      Throws:
      IOException
    • addForwardTo

      public void addForwardTo(String forwardTo)
    • removeForwardTo

      public void removeForwardTo(String forwardTo)
    • canForwardTo

      public boolean canForwardTo(String hostname, int port)
    • getPrincipals

      public Collection<String> getPrincipals()
    • addPrincipal

      public void addPrincipal(String principal)
    • removePrincipal

      public void removePrincipal(String principal)