/** * This constructor creates a new X509 certificate object and initializes * it from the data contained in the element. * * @param elem the element containing the X509 certificate data * @param bspEnforcer a BSPEnforcer instance to enforce BSP rules * @throws WSSecurityException */ public X509Security(Element elem, BSPEnforcer bspEnforcer) throws WSSecurityException { super(elem, bspEnforcer); String valueType = getValueType(); if (!X509_V3_TYPE.equals(valueType)) { bspEnforcer.handleBSPRule(BSPRule.R3033); } }