Search in sources :

Example 1 with ObjectFactory

use of org.apache.xml.security.binding.xmldsig.ObjectFactory in project santuario-java by apache.

the class SecurityTokenFactoryImplTest method setUp.

@Before
public void setUp() throws Exception {
    Init.init(null, this.getClass());
    ObjectFactory of = new ObjectFactory();
    JAXBElement<String> keyname = of.createKeyName("mykey");
    keyInfoType = new KeyInfoType();
    keyInfoType.setId("KeyName");
    keyInfoType.getContent().add(keyname);
    xmlSecurityProperties = new XMLSecurityProperties();
    inboundSecurityContext = new InboundSecurityContextImpl();
}
Also used : ObjectFactory(org.apache.xml.security.binding.xmldsig.ObjectFactory) InboundSecurityContextImpl(org.apache.xml.security.stax.impl.InboundSecurityContextImpl) XMLSecurityProperties(org.apache.xml.security.stax.ext.XMLSecurityProperties) KeyInfoType(org.apache.xml.security.binding.xmldsig.KeyInfoType) Before(org.junit.Before)

Aggregations

KeyInfoType (org.apache.xml.security.binding.xmldsig.KeyInfoType)1 ObjectFactory (org.apache.xml.security.binding.xmldsig.ObjectFactory)1 XMLSecurityProperties (org.apache.xml.security.stax.ext.XMLSecurityProperties)1 InboundSecurityContextImpl (org.apache.xml.security.stax.impl.InboundSecurityContextImpl)1 Before (org.junit.Before)1