コード例 #1
0
ファイル: MessageToken_v2.java プロジェクト: ronshapiro/j86
  private void init(int tokenId, Krb5Context context) throws GSSException {
    this.tokenId = tokenId;
    // Just for consistency check in Wrap
    this.confState = context.getConfState();

    this.initiator = context.isInitiator();

    this.have_acceptor_subkey = context.getKeySrc() == Krb5Context.ACCEPTOR_SUBKEY;

    this.cipherHelper = context.getCipherHelper(null);
    //    debug("In MessageToken.Cons");
  }
コード例 #2
0
ファイル: MessageToken_v2.java プロジェクト: ronshapiro/j86
 /**
  * Constructs an empty MessageToken for the local context to send to the peer. It also increments
  * the local sequence number in the Krb5Context instance it uses after obtaining the object lock
  * for it.
  *
  * @param tokenId the token id that should be contained in this token
  * @param context the Kerberos context associated with this token
  */
 MessageToken_v2(int tokenId, Krb5Context context) throws GSSException {
   /*
     debug("\n============================");
     debug("\nMySessionKey=" +
     getHexBytes(context.getMySessionKey().getBytes()));
     debug("\nPeerSessionKey=" +
     getHexBytes(context.getPeerSessionKey().getBytes()));
     debug("\n============================\n");
   */
   init(tokenId, context);
   this.seqNumber = context.incrementMySequenceNumber();
 }