Class KeyConstraints


  • public class KeyConstraints
    extends java.lang.Object
    Version:
    $Revision: 1.12 $
    Author:
    $author$
    • Field Detail

      • SSH_AGENT_CONSTRAINT_TIMEOUT

        protected static final int SSH_AGENT_CONSTRAINT_TIMEOUT
        See Also:
        Constant Field Values
      • SSH_AGENT_CONSTRAINT_USE_LIMIT

        protected static final int SSH_AGENT_CONSTRAINT_USE_LIMIT
        See Also:
        Constant Field Values
      • SSH_AGENT_CONSTRAINT_FORWARDING_STEPS

        protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_STEPS
        See Also:
        Constant Field Values
      • SSH_AGENT_CONSTRAINT_FORWARDING_PATH

        protected static final int SSH_AGENT_CONSTRAINT_FORWARDING_PATH
        See Also:
        Constant Field Values
      • SSH_AGENT_CONSTRAINT_SSH1_COMPAT

        protected static final int SSH_AGENT_CONSTRAINT_SSH1_COMPAT
        See Also:
        Constant Field Values
      • SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION

        protected static final int SSH_AGENT_CONSTRAINT_NEED_USER_VERIFICATION
        See Also:
        Constant Field Values
    • Constructor Detail

      • KeyConstraints

        public KeyConstraints()
        Creates a new KeyConstraints object.
      • KeyConstraints

        public KeyConstraints​(ByteArrayReader bar)
                       throws java.io.IOException
        Creates a new KeyConstraints object.
        Parameters:
        bar -
        Throws:
        java.io.IOException
    • Method Detail

      • setKeyTimeout

        public void setKeyTimeout​(UnsignedInteger32 timeout)
        Parameters:
        timeout -
      • setKeyUseLimit

        public void setKeyUseLimit​(int uselimit)
        Parameters:
        uselimit -
      • setMaximumForwardingSteps

        public void setMaximumForwardingSteps​(int maxsteps)
        Parameters:
        maxsteps -
      • setForwardingPath

        public void setForwardingPath​(java.lang.String forwardingpath)
        Parameters:
        forwardingpath -
      • setRequiresUserVerification

        public void setRequiresUserVerification​(boolean userverify)
        Parameters:
        userverify -
      • setSSH1Compatible

        public void setSSH1Compatible​(boolean compat)
        Parameters:
        compat -
      • getKeyTimeout

        public long getKeyTimeout()
        Returns:
      • getKeyUseLimit

        public long getKeyUseLimit()
        Returns:
      • getMaximumForwardingSteps

        public long getMaximumForwardingSteps()
        Returns:
      • getUsedCount

        public long getUsedCount()
        Returns:
      • hasTimedOut

        public boolean hasTimedOut()
        Returns:
      • canUse

        public boolean canUse()
        Returns:
      • use

        public void use()
      • getForwardingPath

        public java.lang.String getForwardingPath()
        Returns:
      • requiresUserVerification

        public boolean requiresUserVerification()
        Returns:
      • isSSH1Compatible

        public boolean isSSH1Compatible()
        Returns:
      • toByteArray

        public byte[] toByteArray()
                           throws java.io.IOException
        Returns:
        Throws:
        java.io.IOException