本文整理汇总了Java中org.opensaml.saml2.core.Issuer.setFormat方法的典型用法代码示例。如果您正苦于以下问题:Java Issuer.setFormat方法的具体用法?Java Issuer.setFormat怎么用?Java Issuer.setFormat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opensaml.saml2.core.Issuer
的用法示例。
在下文中一共展示了Issuer.setFormat方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildIssuer
import org.opensaml.saml2.core.Issuer; //导入方法依赖的package包/类
/**
* Costruisce lo issuer object
*
* @return Issuer object
*/
private Issuer buildIssuer(String issuerId) {
IssuerBuilder issuerBuilder = new IssuerBuilder();
Issuer issuer = issuerBuilder.buildObject();
issuer.setNameQualifier(issuerId);
issuer.setFormat(SAML2_NAME_ID_POLICY);
issuer.setValue(issuerId);
return issuer;
}
示例2: buildIssuer
import org.opensaml.saml2.core.Issuer; //导入方法依赖的package包/类
/**
* Build a SAML Issuer object
*
* @param pIssuer URL of the SAML Response Issuer
* @return SAML Issuer Object
*/
private Issuer buildIssuer(String pIssuer) {
Issuer issuer = new IssuerBuilder().buildObject();
issuer.setValue(pIssuer);
issuer.setFormat(NameIDType.ENTITY);
return issuer;
}
示例3: buildIssuer
import org.opensaml.saml2.core.Issuer; //导入方法依赖的package包/类
/**
* Build an Issuer with entity format.
*
* @return a new Issuer
*/
private Issuer buildIssuer() {
Issuer issuerXO = (Issuer) buildXMLObject(Issuer.DEFAULT_ELEMENT_NAME);
issuerXO.setValue(issuer);
issuerXO.setFormat(NameIDType.ENTITY);
return issuerXO;
}
开发者ID:apigee,项目名称:java-opensaml2,代码行数:12,代码来源:SAMLProtocolMessageXMLSignatureSecurityPolicyRuleTest.java
示例4: getIssuer
import org.opensaml.saml2.core.Issuer; //导入方法依赖的package包/类
private static Issuer getIssuer() {
Issuer issuer = new IssuerBuilder().buildObject();
issuer.setValue("WSO2 Identity Server");
issuer.setFormat("urn:oasis:names:tc:SAML:2.0:nameid-format:entity");
return issuer;
}