jdk/src/share/classes/sun/security/jgss/krb5/Krb5Context.java
changeset 4336 4c792c19266e
parent 3483 a16fce1820ef
child 5506 202f599c92aa
equal deleted inserted replaced
4335:365eb4449319 4336:4c792c19266e
    76     private boolean mutualAuthState  = true;
    76     private boolean mutualAuthState  = true;
    77     private boolean replayDetState  = true;
    77     private boolean replayDetState  = true;
    78     private boolean sequenceDetState  = true;
    78     private boolean sequenceDetState  = true;
    79     private boolean confState  = true;
    79     private boolean confState  = true;
    80     private boolean integState  = true;
    80     private boolean integState  = true;
       
    81     private boolean delegPolicyState = false;
    81 
    82 
    82     private int mySeqNumber;
    83     private int mySeqNumber;
    83     private int peerSeqNumber;
    84     private int peerSeqNumber;
    84     private TokenTracker peerTokenTracker;
    85     private TokenTracker peerTokenTracker;
    85 
    86 
   297      */
   298      */
   298     public final boolean getSequenceDetState() {
   299     public final boolean getSequenceDetState() {
   299         return sequenceDetState || replayDetState;
   300         return sequenceDetState || replayDetState;
   300     }
   301     }
   301 
   302 
       
   303     /**
       
   304      * Requests that the deleg policy be respected.
       
   305      */
       
   306     public final void requestDelegPolicy(boolean value) {
       
   307         if (state == STATE_NEW && isInitiator())
       
   308             delegPolicyState = value;
       
   309     }
       
   310 
       
   311     /**
       
   312      * Is deleg policy respected?
       
   313      */
       
   314     public final boolean getDelegPolicyState() {
       
   315         return delegPolicyState;
       
   316     }
       
   317 
   302     /*
   318     /*
   303      * Anonymity is a little different in that after an application
   319      * Anonymity is a little different in that after an application
   304      * requests anonymity it will want to know whether the mechanism
   320      * requests anonymity it will want to know whether the mechanism
   305      * can support it or not, prior to sending any tokens across for
   321      * can support it or not, prior to sending any tokens across for
   306      * context establishment. Since this is from the initiator's
   322      * context establishment. Since this is from the initiator's
   418         confState = state;
   434         confState = state;
   419     }
   435     }
   420 
   436 
   421     final void setIntegState(boolean state) {
   437     final void setIntegState(boolean state) {
   422         integState = state;
   438         integState = state;
       
   439     }
       
   440 
       
   441     final void setDelegPolicyState(boolean state) {
       
   442         delegPolicyState = state;
   423     }
   443     }
   424 
   444 
   425     /**
   445     /**
   426      * Sets the channel bindings to be used during context
   446      * Sets the channel bindings to be used during context
   427      * establishment.
   447      * establishment.