Examples of STSAttributeProvider


Examples of com.sun.xml.ws.api.security.trust.STSAttributeProvider

            throw new WSTrustException(LogStringsMessages.WST_0015_CLIENT_NOT_AUTHORIZED(
                    user, tokenType, appliesTo));
        }
       
        // Get claimed attributes from the STSAttributeProvider
        final STSAttributeProvider attrProvider = WSTrustFactory.getSTSAttributeProvider();
        final Map<QName, List<String>> claimedAttrs = attrProvider.getClaimedAttributes(subject, appliesTo, tokenType, claims);
        context.getOtherProperties().put(IssuedTokenContext.CLAIMED_ATTRUBUTES, claimedAttrs);
       
        //==========================================
        // Create proof key and RequestedProofToken
        //==========================================
View Full Code Here

Examples of com.sun.xml.ws.api.security.trust.STSAttributeProvider

     * by default.
     *
     */
    public static STSAttributeProvider getSTSAttributeProvider() {
       
        STSAttributeProvider attrProvider = null;
        final ServiceFinder<STSAttributeProvider> finder =
                ServiceFinder.find(STSAttributeProvider.class);
        java.util.Iterator it = finder.iterator();
        if(it.hasNext()){
            attrProvider = (STSAttributeProvider)it.next();
View Full Code Here

Examples of com.sun.xml.ws.api.security.trust.STSAttributeProvider

            throw new WSTrustException(LogStringsMessages.WST_0015_CLIENT_NOT_AUTHORIZED(
                    user, tokenType, appliesTo));
        }
       
        // Get claimed attributes from the STSAttributeProvider
        final STSAttributeProvider attrProvider = WSTrustFactory.getSTSAttributeProvider();
        final Map<QName, List<String>> claimedAttrs = attrProvider.getClaimedAttributes(subject, appliesTo, tokenType, claims);
        context.getOtherProperties().put(IssuedTokenContext.CLAIMED_ATTRUBUTES, claimedAttrs);
       
        //==========================================
        // Create proof key and RequestedProofToken
        //==========================================
View Full Code Here

Examples of com.sun.xml.ws.api.security.trust.STSAttributeProvider

            claims = secParas.getClaims();
        }
        if (claims == null){
            claims = eleFac.createClaims();
        }
        final STSAttributeProvider attrProvider = WSTrustFactory.getSTSAttributeProvider();
        final Map<QName, List<String>> claimedAttrs = attrProvider.getClaimedAttributes(subject, appliesTo, tokenType, claims);
       
        RequestedProofToken proofToken = null;
        Entropy serverEntropy = null;
        int keySize = 0;
        if (wstVer.getSymmetricKeyTypeURI().equals(keyType)){
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.