- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.<init>()
方法的一些代码示例,展示了WindowsSecurityContextImpl.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowsSecurityContextImpl.<init>()
方法的具体详情如下:
包路径:waffle.windows.auth.impl.WindowsSecurityContextImpl
类名称:WindowsSecurityContextImpl
方法名:<init>
暂无
代码示例来源:origin: org.postgresql/postgresql
sspiContext = new WindowsSecurityContextImpl();
sspiContext.setPrincipalName(targetName);
sspiContext.setCredentialsHandle(clientCredentials);
代码示例来源:origin: stackoverflow.com
WindowsSecurityContextImpl clientContext = new WindowsSecurityContextImpl();
clientContext.setPrincipalName(Advapi32Util.getUserName());
clientContext.setCredentialsHandle(credentials.getHandle());
代码示例来源:origin: com.github.dblock.waffle/waffle-jna
pfClientContextAttr, null);
sc = new WindowsSecurityContextImpl();
sc.setCredentialsHandle(serverCredential);
sc.setSecurityPackage(securityPackage);
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.oauth2/org.wso2.carbon.identity.oauth
clientCredentials.initialize();
clientContext = new WindowsSecurityContextImpl();
clientContext.setPrincipalName(WindowsAccountImpl.getCurrentUsername());
clientContext.setCredentialsHandle(clientCredentials.getHandle());
代码示例来源: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: 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.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: org.wso2.carbon.identity/org.wso2.carbon.identity.oauth
clientCredentials.initialize();
clientContext = new WindowsSecurityContextImpl();
clientContext.setPrincipalName(WindowsAccountImpl.getCurrentUsername());
clientContext.setCredentialsHandle(clientCredentials.getHandle());
代码示例来源:origin: com.github.waffle/waffle-jna
pfClientContextAttr, null);
sc = new WindowsSecurityContextImpl();
sc.setCredentialsHandle(serverCredential);
sc.setSecurityPackage(securityPackage);
代码示例来源:origin: Waffle/waffle
pfClientContextAttr, null);
sc = new WindowsSecurityContextImpl();
sc.setCredentialsHandle(serverCredential);
sc.setSecurityPackage(securityPackage);
本文整理了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
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.setSecurityPackage()方法的一些代码示例,展示了Windo
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.setCredentialsHandle()方法的一些代码示例,展示了Win
本文整理了Java中waffle.windows.auth.impl.WindowsSecurityContextImpl.setToken()方法的一些代码示例,展示了WindowsSecurity
我是一名优秀的程序员,十分优秀!