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


Java SAMLVersion.VERSION_20属性代码示例

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


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

示例1: setUp

/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    expectedID = "def456";
    expectedInResponseTo = "abc123";
    expectedSAMLVersion = SAMLVersion.VERSION_20;
    expectedIssueInstant = new DateTime(2006, 2, 21, 16, 40, 0, 0, ISOChronology.getInstanceUTC());
    expectedDestination = "http://sp.example.org/endpoint";
    expectedConsent = "urn:string:consent";
    
    QName issuerQName = new QName(SAMLConstants.SAML20_NS, Issuer.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    expectedIssuer = (Issuer) buildXMLObject(issuerQName);
    
    QName statusQName = new QName(SAMLConstants.SAML20P_NS, Status.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20P_PREFIX);
    expectedStatus = (Status) buildXMLObject(statusQName);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:16,代码来源:StatusResponseTestBase.java

示例2: setUp

/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    expectedID = "abc123";
    expectedSAMLVersion = SAMLVersion.VERSION_20;
    expectedIssueInstant = new DateTime(2006, 2, 21, 16, 40, 0, 0, ISOChronology.getInstanceUTC());
    expectedDestination = "http://idp.example.org/endpoint";
    expectedConsent = "urn:string:consent";

    QName issuerQName = new QName(SAMLConstants.SAML20_NS, Issuer.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX);
    expectedIssuer = (Issuer) buildXMLObject(issuerQName);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:13,代码来源:RequestTestBase.java

示例3: setUp

/** {@inheritDoc} */
protected void setUp() throws Exception {
    super.setUp();
    expectedVersion = SAMLVersion.VERSION_20;
    expectedIssueInstant = new DateTime(1984, 8, 26, 10, 01, 30, 43, ISOChronology.getInstanceUTC());
    expectedID = "id";
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:7,代码来源:AssertionTest.java

示例4: RequestAbstractTypeImpl

/**
 * Constructor.
 * 
 * @param namespaceURI the namespace the element is in
 * @param elementLocalName the local name of the XML element this Object represents
 * @param namespacePrefix the prefix for the given namespace
 */
protected RequestAbstractTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
    super(namespaceURI, elementLocalName, namespacePrefix);
    version = SAMLVersion.VERSION_20;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:RequestAbstractTypeImpl.java

示例5: AssertionImpl

/**
 * Constructor.
 * 
 * @param namespaceURI the namespace the element is in
 * @param elementLocalName the local name of the XML element this Object represents
 * @param namespacePrefix the prefix for the given namespace
 */
protected AssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
    super(namespaceURI, elementLocalName, namespacePrefix);
    version = SAMLVersion.VERSION_20;
    statements = new IndexedXMLObjectChildrenList<Statement>(this);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:AssertionImpl.java

示例6: StatusResponseTypeImpl

/**
 * Constructor.
 * 
 * @param namespaceURI the namespace the element is in
 * @param elementLocalName the local name of the XML element this Object represents
 * @param namespacePrefix the prefix for the given namespace
 */
protected StatusResponseTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
    super(namespaceURI, elementLocalName, namespacePrefix);
    version = SAMLVersion.VERSION_20;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:StatusResponseTypeImpl.java


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