- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.initialize()
方法的一些代码示例,展示了WindowsSecurityContextImpl.initialize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowsSecurityContextImpl.initialize()
方法的具体详情如下:
包路径:waffle.windows.auth.impl.WindowsSecurityContextImpl
类名称:WindowsSecurityContextImpl
方法名:initialize
暂无
代码示例来源: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
sspiContext.setCredentialsHandle(clientCredentials);
sspiContext.setSecurityPackage(securityPackage);
sspiContext.initialize(null, null, targetName);
} catch (Win32Exception ex) {
throw new PSQLException("Could not initialize SSPI security context",
代码示例来源:origin: stackoverflow.com
clientContext.setCredentialsHandle(credentials.getHandle());
clientContext.setSecurityPackage(securityPackage);
clientContext.initialize();
clientContext.initialize(clientContext.getHandle(), continueToken);
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.oauth2/org.wso2.carbon.identity.oauth
clientContext.setCredentialsHandle(clientCredentials.getHandle());
clientContext.setSecurityPackage(securityPackage);
clientContext.initialize(null, null, WindowsAccountImpl.getCurrentUsername());
Sspi.SecBufferDesc continueTokenBuffer = new Sspi.
SecBufferDesc(Sspi.SECBUFFER_TOKEN, continueTokenBytes);
clientContext.initialize(clientContext.getHandle(), continueTokenBuffer, "localhost");
token = Base64.encode(clientContext.getToken());
} catch (Exception e) {
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.oauth
clientContext.setCredentialsHandle(clientCredentials.getHandle());
clientContext.setSecurityPackage(securityPackage);
clientContext.initialize(null, null, WindowsAccountImpl.getCurrentUsername());
Sspi.SecBufferDesc continueTokenBuffer = new Sspi.
SecBufferDesc(Sspi.SECBUFFER_TOKEN, continueTokenBytes);
clientContext.initialize(clientContext.getHandle(), continueTokenBuffer, "localhost");
token = Base64.encode(clientContext.getToken());
} catch (Exception e) {
代码示例来源:origin: Waffle/waffle
/**
* Get the current Windows security context for a given SSPI package.
*
* @param securityPackage
* SSPI package.
* @param targetName
* The target of the context. The string contents are security-package specific.
* @return Windows security context.
*/
public static IWindowsSecurityContext getCurrent(final String securityPackage, final String targetName) {
IWindowsCredentialsHandle credentialsHandle = WindowsCredentialsHandleImpl.getCurrent(securityPackage);
credentialsHandle.initialize();
try {
final WindowsSecurityContextImpl ctx = new WindowsSecurityContextImpl();
ctx.setPrincipalName(WindowsAccountImpl.getCurrentUsername());
ctx.setCredentialsHandle(credentialsHandle);
ctx.setSecurityPackage(securityPackage);
ctx.initialize(null, null, targetName);
// Starting from here ctx 'owns' the credentials handle, so let's null out the
// variable. This will prevent the finally block below from disposing it right away.
credentialsHandle = null;
return ctx;
} finally {
if (credentialsHandle != null) {
credentialsHandle.dispose();
}
}
}
代码示例来源:origin: com.github.dblock.waffle/waffle-jna
/**
* Get the current Windows security context for a given SSPI package.
*
* @param securityPackage
* SSPI package.
* @param targetName
* The target of the context. The string contents are security-package specific.
* @return Windows security context.
*/
public static IWindowsSecurityContext getCurrent(final String securityPackage, final String targetName) {
IWindowsCredentialsHandle credentialsHandle = WindowsCredentialsHandleImpl.getCurrent(securityPackage);
credentialsHandle.initialize();
try {
final WindowsSecurityContextImpl ctx = new WindowsSecurityContextImpl();
ctx.setPrincipalName(WindowsAccountImpl.getCurrentUsername());
ctx.setCredentialsHandle(credentialsHandle);
ctx.setSecurityPackage(securityPackage);
ctx.initialize(null, null, targetName);
// Starting from here ctx 'owns' the credentials handle, so let's null out the
// variable. This will prevent the finally block below from disposing it right away.
credentialsHandle = null;
return ctx;
} finally {
if (credentialsHandle != null) {
credentialsHandle.dispose();
}
}
}
代码示例来源:origin: com.github.waffle/waffle-jna
/**
* Get the current Windows security context for a given SSPI package.
*
* @param securityPackage
* SSPI package.
* @param targetName
* The target of the context. The string contents are security-package specific.
* @return Windows security context.
*/
public static IWindowsSecurityContext getCurrent(final String securityPackage, final String targetName) {
IWindowsCredentialsHandle credentialsHandle = WindowsCredentialsHandleImpl.getCurrent(securityPackage);
credentialsHandle.initialize();
try {
final WindowsSecurityContextImpl ctx = new WindowsSecurityContextImpl();
ctx.setPrincipalName(WindowsAccountImpl.getCurrentUsername());
ctx.setCredentialsHandle(credentialsHandle);
ctx.setSecurityPackage(securityPackage);
ctx.initialize(null, null, targetName);
// Starting from here ctx 'owns' the credentials handle, so let's null out the
// variable. This will prevent the finally block below from disposing it right away.
credentialsHandle = null;
return ctx;
} finally {
if (credentialsHandle != null) {
credentialsHandle.dispose();
}
}
}
在 Ruby 中,Proc.new { 'waffles' } 和 proc { 'waffles' } 之间有什么区别吗?我发现很少有人提到第二种语法。 使用 irb 进行测试,我没有发现任何明显的
在尝试解决this problem时我们注意到 GSSAPI 和 SSPI 客户端实现中的 SPNEGO 请求 (KRB_AP_REQ) 之间存在差异: 使用 GSSPI 将 mutalFlag 设置
我在 Intranet 中有一个 Web 应用程序,并且已经在 Intranet 中并且已在他/她的 Windows 计算机上成功登录的客户端不想再次输入任何登录凭据。我见过华夫饼。当我尝试它的示例时
我正在尝试整合 waffle在我的网络应用程序项目 (jsp) 中。我想从 Active 目录(遵循 Kerberos 协议(protocol))为我的 webapp 验证用户。 每当用户提示 url
我在 Windows 7 上运行 Tomcat 7。所有客户端也都运行 Windows 7。 我试图在 test.jsp 页面上打印客户端用户名,所以我使用 Waffle 。这是 WEB-INF/we
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl类的一些代码示例,展示了WindowsSecurityContextImpl类
我正在尝试运行华夫饼“华夫饼过滤器演示”的演示,从 http://repo1.maven.org/maven2/com/github/dblock/waffle/waffle-filter-demo/
我有一个在 Tomcat 上运行并使用 Waffle 通过 Activity 目录进行身份验证的 Java 应用程序。我的要求是使用此应用程序中托管的某些 rest url,而无需对图片进行任何身份验
我已经设置了 Active Directory 并且想要设置 SSO。我正在使用 Waffles 并且想知道我的 Servlet 中的用户组。如何检索用户的组? 最佳答案 我使用 WindowsPri
我们目前正在使用 waffle 来验证我们使用 java/j2ee 构建的基于 Web 的应用程序。我们正在迁移应用程序以使用 Tomcat 8。我们最初使用的是 java 6 和 tomcat 6,
我正在尝试在 Windows 上(使用 Java)实现 SSO。最近我发现this example用 Waffle 做我想做的事: // client credentials handle IWind
在官方的 waffle 文档中,您可能会找到下一个实现装置的方法: import {expect} from 'chai'; import {loadFixture, deployContract}
我的名字是 titiri,很高兴我找到了要分类的 waffle 库。我认为 waffle 是一个很好的机器学习算法库。我有一个关于华夫饼图书馆的问题。 训练模型后,我想打印一个预测,例如: 我的代码是
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.()方法的一些代码示例,展示了WindowsSecurityContextI
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.getHandle()方法的一些代码示例,展示了WindowsSecurit
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.setPrincipalName()方法的一些代码示例,展示了Windows
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.getToken()方法的一些代码示例,展示了WindowsSecurity
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.initialize()方法的一些代码示例,展示了WindowsSecuri
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.setSecurityContext()方法的一些代码示例,展示了Windo
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.dispose()方法的一些代码示例,展示了WindowsSecurityC
我是一名优秀的程序员,十分优秀!