草庐IT

authenticated

全部标签

java.io.IOException : No authentication challenges found

我是android新手,这是我在android上的第一个项目。我在“身份验证”问题上苦苦挣扎了一天多。我尝试了几种选择,但都没有奏效。基本上,我想调用RESTAPI并获得响应。我确信API没有问题,因为我在另一个iOS应用程序中使用了相同的API。我通过了授权header,但仍然进行身份验证,未显示任何找到的消息。我在stackoverflow上发现了一些与此相关的问题,但其中一些不起作用,有些对我来说没有意义。我得到状态代码401。我知道这意味着要么没有通过身份验证,要么如果通过了,那么它们是错误的。在这里,我确信我通过的是正确的。下面是我的代码:try{url=newURL(bas

java - bouncycaSTLe + JBoss AS7 : JCE cannot authenticate the provider BC

我在我的应用程序中使用BouncyCaSTLe进行加密。当我独立运行它时,一切正常。但是,如果我将它放在webapp中并部署在JBoss服务器上,我会收到以下错误:javax.servlet.ServletException:errorconstructingMAC:java.security.NoSuchProviderException:JCEcannotauthenticatetheproviderBC(...)rootcausejava.lang.Exception:errorconstructingMAC:java.security.NoSuchProviderExcepti

java - bouncycaSTLe + JBoss AS7 : JCE cannot authenticate the provider BC

我在我的应用程序中使用BouncyCaSTLe进行加密。当我独立运行它时,一切正常。但是,如果我将它放在webapp中并部署在JBoss服务器上,我会收到以下错误:javax.servlet.ServletException:errorconstructingMAC:java.security.NoSuchProviderException:JCEcannotauthenticatetheproviderBC(...)rootcausejava.lang.Exception:errorconstructingMAC:java.security.NoSuchProviderExcepti

java - 为什么我收到异常 javax.net.ssl.SSLPeerUnverifiedException : peer not authenticated?

我正在使用ApacheHttpComponentsHttpClient(4.0.1)进行HTTPS调用,但我将这个异常作为响应:javax.net.ssl.SSLPeerUnverifiedException:peernotauthenticatedatcom.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:345)atorg.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)ator

java - 为什么我收到异常 javax.net.ssl.SSLPeerUnverifiedException : peer not authenticated?

我正在使用ApacheHttpComponentsHttpClient(4.0.1)进行HTTPS调用,但我将这个异常作为响应:javax.net.ssl.SSLPeerUnverifiedException:peernotauthenticatedatcom.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:345)atorg.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)ator

java.lang.NoClassDefFoundError : javax/mail/Authenticator, 怎么了?

发送到Email.javapackagehelper;//Mail.java-smtpsendingstarttls(ssl)authenticationenabled//1.OpenanewJavaclassinnetbeans(defaultpackageoftheproject)andnameitas"Mail.java"//2.Copypastetheentirecodebelowandsaveit.//3.Rightclickonthefilenameintheleftsidepanelandclick"compile"thenclick"Run"importjavax.ma

java.lang.NoClassDefFoundError : javax/mail/Authenticator, 怎么了?

发送到Email.javapackagehelper;//Mail.java-smtpsendingstarttls(ssl)authenticationenabled//1.OpenanewJavaclassinnetbeans(defaultpackageoftheproject)andnameitas"Mail.java"//2.Copypastetheentirecodebelowandsaveit.//3.Rightclickonthefilenameintheleftsidepanelandclick"compile"thenclick"Run"importjavax.ma

微软 Authenticator更换登录设备

微软Authenticator更换登录设备要把微软Authenticator换到其它手机,网上查到需要备份-恢复等,但是操作时发现需要Googleplay服务,但是安装后仍提示未安装,后发现用如下方式可进行更换。1、登录该网址https://mysignins.microsoft.com/security-info2、点击验证器应用后的—删除3、点击确认4、可见原验证器已删除(原手机中该账号的验证码将失效)5、点击右上角—查看我的账户,或者注销重新登录6、跳至该界面,点击下一步7、点击—>我想要使用其它身份验证器应用8、跳至如下界面9、打开手机Authenticator(该软件不能截图)右上角

java - IOException : "Received authentication challenge is null" (Apache Harmony/Android)

我正在尝试通过Android的HttpURLConnection发送GET(从org.apache.harmony.luni.internal.net.www导入。protocol.http.HttpURLConnection),并在收到响应后,抛出IOException:indoRequestInternal():"Receivedauthenticationchallengeisnull"这个错误是什么意思,是什么原因造成的?我正在将OAuth参数写入Authorizationheader,但我在其他场合也这样做,没有问题。if(connection==null){connecti

java - IOException : "Received authentication challenge is null" (Apache Harmony/Android)

我正在尝试通过Android的HttpURLConnection发送GET(从org.apache.harmony.luni.internal.net.www导入。protocol.http.HttpURLConnection),并在收到响应后,抛出IOException:indoRequestInternal():"Receivedauthenticationchallengeisnull"这个错误是什么意思,是什么原因造成的?我正在将OAuth参数写入Authorizationheader,但我在其他场合也这样做,没有问题。if(connection==null){connecti