gpt4 book ai didi

waffle.windows.auth.impl.WindowsSecurityContextImpl.getToken()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 05:21:05 26 4
gpt4 key购买 nike

本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.getToken()方法的一些代码示例,展示了WindowsSecurityContextImpl.getToken()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowsSecurityContextImpl.getToken()方法的具体详情如下:
包路径:waffle.windows.auth.impl.WindowsSecurityContextImpl
类名称:WindowsSecurityContextImpl
方法名:getToken

WindowsSecurityContextImpl.getToken介绍

暂无

代码示例

代码示例来源:origin: org.postgresql/postgresql

/**
 * Continue an existing authentication conversation with the back-end in resonse to an
 * authentication request of type AUTH_REQ_GSS_CONT.
 *
 * @param msgLength Length of message to read, excluding length word and message type word
 * @throws SQLException if something wrong happens
 * @throws IOException if something wrong happens
 */
public void continueSSPI(int msgLength) throws SQLException, IOException {
 if (sspiContext == null) {
  throw new IllegalStateException("Cannot continue SSPI authentication that we didn't begin");
 }
 LOGGER.log(Level.FINEST, "Continuing SSPI negotiation");
 /* Read the response token from the server */
 byte[] receivedToken = pgStream.receive(msgLength);
 SecBufferDesc continueToken = new SecBufferDesc(Sspi.SECBUFFER_TOKEN, receivedToken);
 sspiContext.initialize(sspiContext.getHandle(), continueToken, targetName);
 /*
  * Now send the response token. If negotiation is complete there may be zero bytes to send, in
  * which case we shouldn't send a reply as the server is not expecting one; see fe-auth.c in
  * libpq for details.
  */
 byte[] responseToken = sspiContext.getToken();
 if (responseToken.length > 0) {
  sendSSPIResponse(responseToken);
  LOGGER.log(Level.FINEST, "Sent SSPI negotiation continuation message");
 } else {
  LOGGER.log(Level.FINEST, "SSPI authentication complete, no reply required");
 }
}

代码示例来源:origin: org.postgresql/postgresql

sendSSPIResponse(sspiContext.getToken());
 LOGGER.log(Level.FINEST, "Sent first SSPI negotiation message");
} catch (NoClassDefFoundError ex) {

代码示例来源:origin: stackoverflow.com

serverContext = provider.acceptSecurityToken(clientContext.getToken(), "Negotiate");

代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.oauth2/org.wso2.carbon.identity.oauth

SecBufferDesc(Sspi.SECBUFFER_TOKEN, continueTokenBytes);
  clientContext.initialize(clientContext.getHandle(), continueTokenBuffer, "localhost");
  token = Base64.encode(clientContext.getToken());
} catch (Exception e) {
  log.error("Error while validating the NTLM authentication grant", e);

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.oauth

SecBufferDesc(Sspi.SECBUFFER_TOKEN, continueTokenBytes);
  clientContext.initialize(clientContext.getHandle(), continueTokenBuffer, "localhost");
  token = Base64.encode(clientContext.getToken());
} catch (Exception e) {
  log.error("Error while validating the NTLM authentication grant", e);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com