Here is the provider class:
public class SmSessionAssertionInterceptorProvider extends
AbstractPolicyInterceptorProvider {
// class level logger
private static final Logger logger =
LoggerFactory.getLogger(SmSessionAssertionInterceptorProvider.class);
private static final Collection<QName> ASSERTION_TYPES;
static {
ASSERTION_TYPES = new ArrayList<QName>();
ASSERTION_TYPES.add(Constants.QN_SMSESSION_TOKEN);
logger.debug("initialized
SmSessionAssertionInterceptorProvider...");
}
public SmSessionAssertionInterceptorProvider() {
this(new SmSessionAssertionInterceptor());
}
public SmSessionAssertionInterceptorProvider(Bus bus) {
this((SmSessionAssertionInterceptor)
bus.getProperty("org.apache.cxf.ws.security.smsession.interceptor"));
}
public
SmSessionAssertionInterceptorProvider(SmSessionAssertionInterceptor
inInterceptor) {
super(ASSERTION_TYPES);
this.getOutInterceptors().add(new SmSessionAssertionInterceptor());
this.getInInterceptors().add(inInterceptor == null ? new
SmSessionAssertionInterceptor() : inInterceptor);
}
}
With these constants:
public static final String NS_HCSC =
"http://schemas.hcsc.com/ws/securitypolicy";
public static final String SMSESSION_TOKEN = "SmSessionToken";
public static final String PREFIX_HCSC = "hcsc";
public static final QName QN_SMSESSION_TOKEN = new QName(NS_HCSC,
SMSESSION_TOKEN, PREFIX_HCSC);
public static final String ATTR_NAME_VALUE_TYPE = "ValueType";
public static final String VALUE_TYPE_SMSESSION =
"http://schemas.hcsc.com/ws/securitypolicy/token-profile#SMSESSION";
--
View this message in context:
http://cxf.547215.n5.nabble.com/PolicyException-when-using-BST-with-custom-ValueType-tp5743444p5743549.html
Sent from the cxf-user mailing list archive at Nabble.com.