本文整理了Java中org.opensaml.Configuration.getBuilderFactory()
方法的一些代码示例,展示了Configuration.getBuilderFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getBuilderFactory()
方法的具体详情如下:
包路径:org.opensaml.Configuration
类名称:Configuration
方法名:getBuilderFactory
暂无
代码示例来源:origin: cloudfoundry/uaa
/**
* Default constructor.
*/
public IdpMetadataGenerator() {
this.builderFactory = Configuration.getBuilderFactory();
}
代码示例来源:origin: cloudfoundry/uaa
public void initializeSimple() throws ConfigurationException {
builderFactory = Configuration.getBuilderFactory();
}
代码示例来源:origin: cloudfoundry/uaa
protected KeyDescriptor getKeyDescriptor(UsageType type, KeyInfo key) {
@SuppressWarnings("unchecked")
SAMLObjectBuilder<KeyDescriptor> builder = (SAMLObjectBuilder<KeyDescriptor>) Configuration.getBuilderFactory()
.getBuilder(KeyDescriptor.DEFAULT_ELEMENT_NAME);
KeyDescriptor descriptor = builder.buildObject();
descriptor.setUse(type);
descriptor.setKeyInfo(key);
return descriptor;
}
代码示例来源:origin: org.springframework.security.extensions/spring-security-saml2-core
/**
* Default constructor.
*/
public MetadataGenerator() {
this.builderFactory = Configuration.getBuilderFactory();
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML1StringNameIdentifierEncoder() {
identifierBuilder = (SAMLObjectBuilder<NameIdentifier>) Configuration.getBuilderFactory().getBuilder(
NameIdentifier.DEFAULT_ELEMENT_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
protected AbstractSAML1AttributeEncoder() {
attributeBuilder = (SAMLObjectBuilder<Attribute>) Configuration.getBuilderFactory().getBuilder(
Attribute.DEFAULT_ELEMENT_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML2StringNameIDEncoder() {
nameIdBuilder = (SAMLObjectBuilder<NameID>) Configuration.getBuilderFactory().getBuilder(
NameID.DEFAULT_ELEMENT_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/**
* This creates a new attribute authority.
*
* @param resolver The attribute resolver to set
*/
@SuppressWarnings("unchecked")
public ShibbolethSAML2AttributeAuthority(ShibbolethAttributeResolver resolver) {
XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
statementBuilder = (SAMLObjectBuilder<AttributeStatement>) builderFactory
.getBuilder(AttributeStatement.DEFAULT_ELEMENT_NAME);
attributeResolver = resolver;
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML1XMLObjectAttributeEncoder() {
super();
attributeValueBuilder = Configuration.getBuilderFactory().getBuilder(XSAny.TYPE_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML2Base64AttributeEncoder() {
super();
stringBuilder = (XSStringBuilder) Configuration.getBuilderFactory().getBuilder(XSString.TYPE_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML1NameIdentifierAttributeDefinition() {
super();
nameIdBuilder = (SAMLObjectBuilder<NameIdentifier>) Configuration.getBuilderFactory().getBuilder(
NameIdentifier.DEFAULT_ELEMENT_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML2StringAttributeEncoder() {
super();
stringBuilder = (XSStringBuilder) Configuration.getBuilderFactory().getBuilder(XSString.TYPE_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML2XMLObjectAttributeEncoder() {
super();
attributeValueBuilder = Configuration.getBuilderFactory().getBuilder(XSAny.TYPE_NAME);
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/**
* This creates a new attribute authority.
*
* @param resolver The attribute resolver to set
*/
@SuppressWarnings("unchecked")
public ShibbolethSAML1AttributeAuthority(ShibbolethAttributeResolver resolver) {
XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
statementBuilder = (SAMLObjectBuilder<AttributeStatement>) builderFactory
.getBuilder(AttributeStatement.DEFAULT_ELEMENT_NAME);
attributeResolver = resolver;
}
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
/** Constructor. */
public SAML1Base64AttributeEncoder() {
super();
stringBuilder = Configuration.getBuilderFactory().getBuilder(XSString.TYPE_NAME);
}
代码示例来源:origin: be.e_contract.sts/sts-client-cxf
private <T extends XMLObject> T buildXMLObject(Class<T> clazz,
QName objectQName) {
XMLObjectBuilder<T> builder = Configuration.getBuilderFactory()
.getBuilder(objectQName);
if (builder == null) {
throw new RuntimeException(
"Unable to retrieve builder for object QName "
+ objectQName);
}
return builder.buildObject(objectQName);
}
}
代码示例来源:origin: org.apache.rampart/rampart-trust
/**
* Builds an assertion from an XML element.
* @param assertionElement The XML element.
* @return An Assertion object.
*/
public static Assertion buildAssertion(Element assertionElement) {
return (Assertion) Configuration.getBuilderFactory().
getBuilder(Assertion.DEFAULT_ELEMENT_NAME).buildObject(assertionElement);
}
代码示例来源:origin: org.apache.rampart/rampart-trust
private KeyInfoConfirmationDataType createKeyInfoConfirmationDataType() {
XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
@SuppressWarnings({"unchecked"}) SAMLObjectBuilder<KeyInfoConfirmationDataType> keyInfoSubjectConfirmationDataBuilder =
(SAMLObjectBuilder<KeyInfoConfirmationDataType>) builderFactory.getBuilder
(KeyInfoConfirmationDataType.TYPE_NAME);
//Build the subject confirmation data element
return keyInfoSubjectConfirmationDataBuilder.
buildObject(SubjectConfirmationData.DEFAULT_ELEMENT_NAME, KeyInfoConfirmationDataType.TYPE_NAME);
}
代码示例来源:origin: org.springframework.security.extensions/spring-security-saml2-core
protected KeyDescriptor getKeyDescriptor(UsageType type, KeyInfo key) {
SAMLObjectBuilder<KeyDescriptor> builder = (SAMLObjectBuilder<KeyDescriptor>) Configuration.getBuilderFactory().getBuilder(KeyDescriptor.DEFAULT_ELEMENT_NAME);
KeyDescriptor descriptor = builder.buildObject();
descriptor.setUse(type);
descriptor.setKeyInfo(key);
return descriptor;
}
代码示例来源:origin: org.springframework.security.extensions/spring-security-saml2-core
protected ArtifactResolve createArtifactResolve(SAMLMessageContext context, String artifactId, Endpoint endpoint) {
XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
SAMLObjectBuilder<Artifact> artifactBuilder = (SAMLObjectBuilder<Artifact>) builderFactory.getBuilder(Artifact.DEFAULT_ELEMENT_NAME);
SAMLObjectBuilder<ArtifactResolve> artifactResolveBuilder = (SAMLObjectBuilder<ArtifactResolve>) builderFactory.getBuilder(ArtifactResolve.DEFAULT_ELEMENT_NAME);
Artifact artifact = artifactBuilder.buildObject();
artifact.setArtifact(artifactId);
ArtifactResolve artifactResolve = artifactResolveBuilder.buildObject();
artifactResolve.setArtifact(artifact);
buildCommonAttributes(context.getLocalEntityId(), artifactResolve, endpoint);
return artifactResolve;
}
内容来源于网络,如有侵权,请联系作者删除!