Examples of IncludeTokenType


Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

     */
    protected boolean isTokenRequired(
        Token token,
        Message message
    ) {
        IncludeTokenType inclusion = token.getInclusion();
        if (inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER) {
            return false;
        } else if (inclusion == IncludeTokenType.INCLUDE_TOKEN_ALWAYS) {
            return true;
        } else {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

     */
    protected boolean isTokenRequired(
        Token token,
        Message message
    ) {
        IncludeTokenType inclusion = token.getInclusion();
        if (inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER) {
            return false;
        } else if (inclusion == IncludeTokenType.INCLUDE_TOKEN_ALWAYS) {
            return true;
        } else {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

                        policyNotAsserted(initiatorToken, "No intiator token id");
                        return;
                    } else {
                        policyAsserted(initiatorToken);
                       
                        IncludeTokenType inclusion = initiatorToken.getInclusion();
                        if (SPConstants.IncludeTokenType.INCLUDE_TOKEN_ALWAYS == inclusion
                            || SPConstants.IncludeTokenType.INCLUDE_TOKEN_ONCE == inclusion
                            || (isRequestor()
                                && SPConstants.IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT
                                    == inclusion)) {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

                    policyNotAsserted(initiatorToken, "No intiator token id");
                    return;
                } else {
                    policyAsserted(initiatorToken);
                   
                    IncludeTokenType inclusion = initiatorToken.getInclusion();
                    if (SPConstants.IncludeTokenType.INCLUDE_TOKEN_ALWAYS == inclusion
                        || SPConstants.IncludeTokenType.INCLUDE_TOKEN_ONCE == inclusion
                        || (isRequestor()
                            && SPConstants.IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT
                                == inclusion)) {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

                            return;
                        } else {
                            policyAsserted(transportToken);
                        }
                       
                        IncludeTokenType inclusion = transportToken.getInclusion();
                        if (SPConstants.IncludeTokenType.INCLUDE_TOKEN_ALWAYS == inclusion
                            || SPConstants.IncludeTokenType.INCLUDE_TOKEN_ONCE == inclusion
                            || (SPConstants.IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT
                                == inclusion)) {
                           
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

     */
    protected boolean isTokenRequired(
        Token token,
        Message message
    ) {
        IncludeTokenType inclusion = token.getInclusion();
        if (inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER) {
            return false;
        } else if (inclusion == IncludeTokenType.INCLUDE_TOKEN_ALWAYS) {
            return true;
        } else {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

     */
    protected boolean isTokenRequired(
        Token token,
        Message message
    ) {
        IncludeTokenType inclusion = token.getInclusion();
        if (inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER) {
            return false;
        } else if (inclusion == IncludeTokenType.INCLUDE_TOKEN_ALWAYS) {
            return true;
        } else {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.SPConstants.IncludeTokenType

     */
    protected boolean isTokenRequired(
        Token token,
        Message message
    ) {
        IncludeTokenType inclusion = token.getInclusion();
        if (inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER) {
            return false;
        } else if (inclusion == IncludeTokenType.INCLUDE_TOKEN_ALWAYS) {
            return true;
        } else {
View Full Code Here

Examples of org.apache.wss4j.policy.SPConstants.IncludeTokenType

                if (ais.isEmpty()) {
                    return;
                }
                for (AssertionInfo inf : ais) {
                    SecureConversationToken token = (SecureConversationToken)inf.getAssertion();
                    IncludeTokenType inclusion = token.getIncludeTokenType();
                    if (foundSCT || token.isOptional()
                        || (!foundSCT && inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER)) {
                        inf.setAsserted(true);
                    } else {
                        inf.setNotAsserted("No SecureConversation token found in message.");
View Full Code Here

Examples of org.apache.wss4j.policy.SPConstants.IncludeTokenType

                if (ais.isEmpty()) {
                    return;
                }
                for (AssertionInfo inf : ais) {
                    SecureConversationToken token = (SecureConversationToken)inf.getAssertion();
                    IncludeTokenType inclusion = token.getIncludeTokenType();
                    if (foundSCT || token.isOptional()
                        || (!foundSCT && inclusion == IncludeTokenType.INCLUDE_TOKEN_NEVER)) {
                        inf.setAsserted(true);
                    } else {
                        inf.setNotAsserted("No SecureConversation token found in message.");
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.