Code example for MessageProp

0
 
  @Override 
  public synchronized VerifierGSS getVerifer(RPCRequest request) throws RPCException {
    CredentialsGSS creds = (CredentialsGSS)request.getCredentials();
    byte[] sequenceNumber = Bytes.toBytes(creds.getSequenceNum());
    MessageProp msgProp = new MessageProp(false);
    VerifierGSS verifier = new VerifierGSS();
    try { 
      verifier.set(mContext.getMIC(sequenceNumber, 0, sequenceNumber.length, msgProp));
    } catch(GSSException ex) {
      throw new RPCAuthException(RPC_AUTH_STATUS_GSS_CTXPROBLEM, ex);
    } 
    return verifier;
  } 
  public synchronized Pair<? extends Verifier, InitializeResponse> initializeContext(RPCRequest request, RPCBuffer buffer)
    throws RPCException { 
    CredentialsGSS creds = (CredentialsGSS)request.getCredentials();
    Preconditions.checkState((creds.getProcedure() == RPCSEC_GSS_INIT) ||
        (creds.getProcedure() == RPCSEC_GSS_CONTINUE_INIT), "Proc is " + creds.getFlavor());
    Preconditions.checkState(request.getVerifier() instanceof VerifierNone,
Experience pair programming with AI  Get Codota for Java