当前位置: 首页>>代码示例>>Java>>正文


Java Issuer.getValue方法代码示例

本文整理汇总了Java中org.opensaml.saml.saml2.core.Issuer.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java Issuer.getValue方法的具体用法?Java Issuer.getValue怎么用?Java Issuer.getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opensaml.saml.saml2.core.Issuer的用法示例。


在下文中一共展示了Issuer.getValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: formatAuthnResponse

import org.opensaml.saml.saml2.core.Issuer; //导入方法依赖的package包/类
public String formatAuthnResponse(Response samlResponse, Direction direction, Boolean validSignature) {
    Issuer issuer = samlResponse.getIssuer();
    String issuerString = issuer != null ? issuer.getValue() : "";

    Status status = samlResponse.getStatus();
    StatusCode subStatusCode = status.getStatusCode().getStatusCode();
    String subStatus = subStatusCode != null ? subStatusCode.getValue() : "";

    return String.format(AUTHN_RESPONSE,
            samlResponse.getID(),
            samlResponse.getInResponseTo(),
            direction,
            samlResponse.getDestination(),
            issuerString,
            validSignature,
            status.getStatusCode().getValue(),
            subStatus,
            getStatusDetailValues(status));
}
 
开发者ID:alphagov,项目名称:verify-hub,代码行数:20,代码来源:ProtectiveMonitoringLogFormatter.java

示例2: formatAuthnRequest

import org.opensaml.saml.saml2.core.Issuer; //导入方法依赖的package包/类
public String formatAuthnRequest(AuthnRequest authnRequest, Direction direction, Boolean validSignature) {
    Issuer issuer = authnRequest.getIssuer();
    String issuerId = issuer != null ? issuer.getValue() : "";

    return String.format(AUTHN_REQUEST,
            authnRequest.getID(),
            direction,
            authnRequest.getDestination(),
            issuerId,
            validSignature);
}
 
开发者ID:alphagov,项目名称:verify-hub,代码行数:12,代码来源:ProtectiveMonitoringLogFormatter.java

示例3: validateIssuer

import org.opensaml.saml.saml2.core.Issuer; //导入方法依赖的package包/类
/**
 * Validate issuer format and value.
 *
 * @param issuer the issuer
 * @param context the context
 */
protected final void validateIssuer(final Issuer issuer, final SAML2MessageContext context) {
    if (issuer.getFormat() != null && !issuer.getFormat().equals(NameIDType.ENTITY)) {
        throw new SAMLException("Issuer type is not entity but " + issuer.getFormat());
    }

    final String entityId = context.getSAMLPeerEntityContext().getEntityId();
    if (entityId == null || !entityId.equals(issuer.getValue())) {
        throw new SAMLException("Issuer " + issuer.getValue() + " does not match idp entityId " + entityId);
    }
}
 
开发者ID:yaochi,项目名称:pac4j-plus,代码行数:17,代码来源:SAML2DefaultResponseValidator.java

示例4: validateIssuer

import org.opensaml.saml.saml2.core.Issuer; //导入方法依赖的package包/类
private void validateIssuer(Issuer issuer) {
    String issuerId = issuer.getValue();
    if (Strings.isNullOrEmpty(issuerId)) {
        SamlValidationSpecificationFailure failure = SamlTransformationErrorFactory.missingIssuer();
        throw new SamlTransformationErrorException(failure.getErrorMessage(), failure.getLogLevel());
    }
}
 
开发者ID:alphagov,项目名称:verify-matching-service-adapter,代码行数:8,代码来源:SamlAttributeQueryValidator.java


注:本文中的org.opensaml.saml.saml2.core.Issuer.getValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。