/** * @return the WSSConfig object set on this instance */ public final WSSConfig getWssConfig() { if (wssConfig == null) { wssConfig = WSSConfig.getNewInstance(); } return wssConfig; }
private static void addXMLDSigRI() { try { addXMLDSigRIInternal(); } catch (Throwable t) { //ignore - may be a NoClassDefFound if XMLDSigRI isn't avail return; } }
public static void addXMLDSigRIInternal() { addJceProvider("ApacheXMLDSig", SantuarioUtil.getSantuarioProvider()); }
public void handle(Callback[] cb) throws IOException, UnsupportedCallbackException { ((WSPasswordCallback) cb[0]).setPassword(this.passwd); }
/** * Constructor. * <p/> * * @param errorCode * @param msgId * @param args */ public WSSecurityException(int errorCode, String msgId, Object[] args) { super(getMessage(errorCode, msgId, args)); this.errorCode = errorCode; }
/** * Get a protection element for the given (wsu/SAML) Id. * @param uri is the (relative) uri of the id * @return the protection element or null if nothing found * @deprecated */ public Element getProtectionElement(String uri) { return getTokenElement(uri); }
/** * Store a token element for later retrieval. Before storing the token, we check for a * previously processed token with the same (wsu/SAML) Id. * @param element is the token element to store */ public void addTokenElement(Element element) throws WSSecurityException { addTokenElement(element, true); }
/** * Get the Validator instance corresponding to the QName * @param qName the QName with which to find a Validator instance * @return the Validator instance corresponding to the QName * @throws WSSecurityException */ public Validator getValidator(QName qName) throws WSSecurityException { if (wssConfig != null) { return wssConfig.getValidator(qName); } return null; }
private WSSConfig getWSSConfig() { if (wssConfig == null) { wssConfig = WSSConfig.getNewInstance(); } return wssConfig; } }
/** * Constructor. * <p/> * * @param errorCode * @param msgId * @param args * @param exception */ public WSSecurityException(int errorCode, String msgId, Object[] args, Throwable exception) { super(getMessage(errorCode, msgId, args), exception); this.errorCode = errorCode; }
public static void addXMLDSigRIInternal() { addJceProvider("ApacheXMLDSig", SantuarioUtil.getSantuarioProvider()); }
/** * Get a protection element for the given (wsu/SAML) Id. * @param uri is the (relative) uri of the id * @return the protection element or null if nothing found * @deprecated */ public Element getProtectionElement(String uri) { return getTokenElement(uri); }
/** * Store a token element for later retrieval. Before storing the token, we check for a * previously processed token with the same (wsu/SAML) Id. * @param element is the token element to store */ public void addTokenElement(Element element) throws WSSecurityException { addTokenElement(element, true); }
/** * Get the Validator instance corresponding to the QName * @param qName the QName with which to find a Validator instance * @return the Validator instance corresponding to the QName * @throws WSSecurityException */ public Validator getValidator(QName qName) throws WSSecurityException { if (wssConfig != null) { return wssConfig.getValidator(qName); } return null; }
public WSSConfig getWsConfig() { if (wssConfig == null) { wssConfig = WSSConfig.getNewInstance(); } return wssConfig; }
private WSSConfig getWSSConfig() { if (wssConfig == null) { wssConfig = WSSConfig.getNewInstance(); } return wssConfig; } }
public WSSConfig getWsConfig() { if (wssConfig == null) { wssConfig = WSSConfig.getNewInstance(); } return wssConfig; }
/** * @return the WSSConfig object set on this instance */ public final WSSConfig getWssConfig() { if (wssConfig == null) { wssConfig = WSSConfig.getNewInstance(); } return wssConfig; }