Examples of UsernameTokenType


Examples of org.picketlink.identity.federation.ws.wss.secext.UsernameTokenType

        assertEquals(WSTrustConstants.ISSUE_REQUEST, requestToken.getRequestType().toASCIIString());

        OnBehalfOfType onBehalfOf = requestToken.getOnBehalfOf();
        List<Object> theList = onBehalfOf.getAny();
        assertNotNull(theList);
        UsernameTokenType userNameToken = (UsernameTokenType) theList.get(0);
        assertEquals("id", userNameToken.getId());
        assertEquals("anotherduke", userNameToken.getUsername().getValue());

        // Now for the writing part
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        WSTrustRequestWriter rstWriter = new WSTrustRequestWriter(baos);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.