Examples of CardIssuer


Examples of org.wso2.carbon.identity.provider.cards.CardIssuer

     * @param requireAppliesTo
     * @return
     * @throws Exception
     */
    public String issueCardForUsername(String username, boolean requireAppliesTo) throws Exception {
        CardIssuer issuer = null;
        Element card = null;

        validateInputParameters(new String[]{username},
                "Invalid parameters provided to issueCardForUsername");
        checkUserAuthorization(username, "issueCardForUsername");
        issuer = new CardIssuer();
        card = issuer.issueCardForUsername(username, requireAppliesTo);

        return IdentityProviderUtil.dumpInfoCard(MessageContext.getCurrentMessageContext().
                getConfigurationContext(), card);
    }
View Full Code Here

Examples of org.wso2.carbon.identity.provider.cards.CardIssuer

     * @return
     * @throws Exception
     */
    public String issueCardForSelfIssuedCards(String ppid, boolean requireAppliesTo)
            throws Exception {
        CardIssuer issuer = null;
        Element card = null;

        validateInputParameters(new String[]{ppid},
                "Invalid parameters provided to issueCardForSelfIssuedCards");
        checkUserAuthorization(extractPrimaryUserName(ppid), "issueCardForSelfIssuedCards");

        issuer = new CardIssuer();
        card = issuer.issueCardForSelfIssuedCard(ppid, requireAppliesTo);

        return IdentityProviderUtil.dumpInfoCard(MessageContext.getCurrentMessageContext().
                getConfigurationContext(), card);
    }
View Full Code Here

Examples of org.wso2.carbon.identity.provider.cards.CardIssuer

     * @return
     * @throws Exception
     */
    public String issueOpenIDInfoCardForUsername(String username, boolean requireAppliesTo)
            throws Exception {
        CardIssuer issuer = null;
        Element card = null;

        validateInputParameters(new String[]{username},
                "Invalid parameters provided to issueOpenIDInfoCardForUsername");
        checkUserAuthorization(username, "issueOpenIDInfoCardForUsername");

        issuer = new CardIssuer();
        issuer.setIsOpenIdInfoCard(true);
        card = issuer.issueCardForUsername(username, requireAppliesTo);

        return IdentityProviderUtil.dumpInfoCard(MessageContext.getCurrentMessageContext().
                getConfigurationContext(), card);
    }
View Full Code Here

Examples of org.wso2.carbon.identity.provider.cards.CardIssuer

     * @return
     * @throws Exception
     */
    public String issueOpenIDInfoCardForSelfIssuedCard(String ppid, boolean requireAppliesTo)
            throws Exception {
        CardIssuer issuer = null;
        Element card = null;

        validateInputParameters(new String[]{ppid},
                "Invalid parameters provided to issueOpenIDInfoCardForSelfIssuedCard");
        checkUserAuthorization(extractPrimaryUserName(ppid), "issueOpenIDInfoCardForSelfIssuedCard");

        issuer = new CardIssuer();
        issuer.setIsOpenIdInfoCard(true);
        card = issuer.issueCardForSelfIssuedCard(ppid, requireAppliesTo);

        return IdentityProviderUtil.dumpInfoCard(MessageContext.getCurrentMessageContext().
                getConfigurationContext(), card);
    }
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.