Java Code Examples for org.apache.cxf.ws.security.SecurityConstants#ALL_PROPERTIES

The following examples show how to use org.apache.cxf.ws.security.SecurityConstants#ALL_PROPERTIES . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 2
Source File: SpnegoTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s);
        if (v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 3
Source File: SecureConversationTokenInterceptorProvider.java    From cxf with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v == null) {
            v = message.getContextualProperty(s);
        }
        if (v != null && !s.equals(SecurityConstants.TOKEN) && !s.equals(SecurityConstants.TOKEN_ID)) {
            ctx.put(s, v);
        }
    }
}
 
Example 4
Source File: IssuedTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".it");
        if (v == null) {
            v = message.getContextualProperty(s);
        }
        if (!ctx.containsKey(s) && v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 5
Source File: SecureConversationTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 6
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 7
Source File: SpnegoTokenInterceptorProvider.java    From cxf with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s);
        if (v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 8
Source File: SpnegoContextTokenInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s);
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 9
Source File: SecureConversationInInterceptor.java    From cxf with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v == null) {
            v = message.getContextualProperty(s);
        }
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 10
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 11
Source File: SpnegoTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s);
        if (v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 12
Source File: SpnegoContextTokenInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s);
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 13
Source File: IssuedTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".it");
        if (v == null) {
            v = message.getContextualProperty(s);
        }
        if (!ctx.containsKey(s) && v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 14
Source File: SecureConversationTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 15
Source File: SecureConversationInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 16
Source File: STSTokenRetriever.java    From cxf with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".it");
        if (v == null) {
            v = message.getContextualProperty(s);
        }
        if (!ctx.containsKey(s) && v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 17
Source File: SpnegoContextTokenInInterceptor.java    From steady with Apache License 2.0 5 votes vote down vote up
private void unmapSecurityProps(Message message) {
    Exchange ex = message.getExchange();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s);
        if (v != null) {
            ex.put(s, v);
        }
    }
}
 
Example 18
Source File: IssuedTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".it");
        if (v == null) {
            v = message.getContextualProperty(s);
        }
        if (!ctx.containsKey(s) && v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 19
Source File: SecureConversationTokenInterceptorProvider.java    From steady with Apache License 2.0 5 votes vote down vote up
private static void mapSecurityProps(Message message, Map<String, Object> ctx) {
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        Object v = message.getContextualProperty(s + ".sct");
        if (v != null) {
            ctx.put(s, v);
        }
    }
}
 
Example 20
Source File: STSLoginModule.java    From cxf with Apache License 2.0 4 votes vote down vote up
@Override
public void initialize(Subject subj, CallbackHandler cbHandler, Map<String, ?> sharedState,
                       Map<String, ?> options) {
    subject = subj;
    callbackHandler = cbHandler;
    if (options.containsKey(REQUIRE_ROLES)) {
        requireRoles = Boolean.parseBoolean((String)options.get(REQUIRE_ROLES));
    }
    if (options.containsKey(DISABLE_ON_BEHALF_OF)) {
        disableOnBehalfOf = Boolean.parseBoolean((String)options.get(DISABLE_ON_BEHALF_OF));
    }
    if (options.containsKey(DISABLE_CACHING)) {
        disableCaching = Boolean.parseBoolean((String)options.get(DISABLE_CACHING));
    }
    if (options.containsKey(WSDL_LOCATION)) {
        wsdlLocation = (String)options.get(WSDL_LOCATION);
    }
    if (options.containsKey(SERVICE_NAME)) {
        serviceName = (String)options.get(SERVICE_NAME);
    }
    if (options.containsKey(ENDPOINT_NAME)) {
        endpointName = (String)options.get(ENDPOINT_NAME);
    }
    if (options.containsKey(KEY_SIZE)) {
        keySize = Integer.parseInt((String)options.get(KEY_SIZE));
    }
    if (options.containsKey(KEY_TYPE)) {
        keyType = (String)options.get(KEY_TYPE);
    }
    if (options.containsKey(TOKEN_TYPE)) {
        tokenType = (String)options.get(TOKEN_TYPE);
    }
    if (options.containsKey(WS_TRUST_NAMESPACE)) {
        namespace = (String)options.get(WS_TRUST_NAMESPACE);
    }
    if (options.containsKey(CXF_SPRING_CFG)) {
        cxfSpringCfg = (String)options.get(CXF_SPRING_CFG);
    }

    stsClientProperties.clear();
    for (String s : SecurityConstants.ALL_PROPERTIES) {
        if (options.containsKey(s)) {
            stsClientProperties.put(s, options.get(s));
        }
    }
}