本文整理汇总了Java中org.restlet.engine.security.AuthenticatorUtils.parseResponse方法的典型用法代码示例。如果您正苦于以下问题:Java AuthenticatorUtils.parseResponse方法的具体用法?Java AuthenticatorUtils.parseResponse怎么用?Java AuthenticatorUtils.parseResponse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.restlet.engine.security.AuthenticatorUtils
的用法示例。
在下文中一共展示了AuthenticatorUtils.parseResponse方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getChallengeResponse
import org.restlet.engine.security.AuthenticatorUtils; //导入方法依赖的package包/类
@Override
public ChallengeResponse getChallengeResponse() {
ChallengeResponse result = super.getChallengeResponse();
if (!this.securityAdded) {
// Extract the header value
String authorization = getHeaders().getValues(HeaderConstants.HEADER_AUTHORIZATION);
// Set the challenge response
result = AuthenticatorUtils.parseResponse(this, authorization, getHeaders());
setChallengeResponse(result);
this.securityAdded = true;
}
return result;
}
示例2: getProxyChallengeResponse
import org.restlet.engine.security.AuthenticatorUtils; //导入方法依赖的package包/类
@Override
public ChallengeResponse getProxyChallengeResponse() {
ChallengeResponse result = super.getProxyChallengeResponse();
if (!this.proxySecurityAdded) {
// Extract the header value
final String authorization = getHeaders().getValues(HeaderConstants.HEADER_PROXY_AUTHORIZATION);
// Set the challenge response
result = AuthenticatorUtils.parseResponse(this, authorization, getHeaders());
setProxyChallengeResponse(result);
this.proxySecurityAdded = true;
}
return result;
}
示例3: getChallengeResponse
import org.restlet.engine.security.AuthenticatorUtils; //导入方法依赖的package包/类
@Override
public ChallengeResponse getChallengeResponse() {
ChallengeResponse result = super.getChallengeResponse();
if (!this.securityAdded) {
// Extract the header value
String authorization = getHttpCall().getRequestHeaders().getValues(HeaderConstants.HEADER_AUTHORIZATION);
// Set the challenge response
result = AuthenticatorUtils.parseResponse(this, authorization, getHttpCall().getRequestHeaders());
setChallengeResponse(result);
this.securityAdded = true;
}
return result;
}
示例4: getProxyChallengeResponse
import org.restlet.engine.security.AuthenticatorUtils; //导入方法依赖的package包/类
@Override
public ChallengeResponse getProxyChallengeResponse() {
ChallengeResponse result = super.getProxyChallengeResponse();
if (!this.proxySecurityAdded) {
// Extract the header value
final String authorization = getHttpCall().getRequestHeaders()
.getValues(HeaderConstants.HEADER_PROXY_AUTHORIZATION);
// Set the challenge response
result = AuthenticatorUtils.parseResponse(this, authorization, getHttpCall().getRequestHeaders());
setProxyChallengeResponse(result);
this.proxySecurityAdded = true;
}
return result;
}