我如何(或者能否)在Java中检索当前登录Windows用户的缓存凭据?我想在其他GSS-API调用中重复使用这些凭据。具体来说,我正在回答来自IIS的SPNEGO挑战。
谢谢。
我如何(或者能否)在Java中检索当前登录Windows用户的缓存凭据?我想在其他GSS-API调用中重复使用这些凭据。具体来说,我正在回答来自IIS的SPNEGO挑战。
谢谢。
假设您正在使用JAVA 5:
com.sun.security.auth.module.NTSystem NTSystem = new com.sun.security.auth.module.NTSystem();
System.out.println(NTSystem.getName());