/** * Returns the string representation of the token. * * @return a XML string representation */ public String toString() { return DOM2Writer.nodeToString(element); }
/** * Get the created timestamp. * * @return the data from the created time element. */ public String getCreated() { return XMLUtils.getElementText(elementCreated); }
/** * Return an active prefix for the given namespaceURI, including * the default prefix (""). */ public String getPrefix(String namespaceURI) { return getPrefix(namespaceURI, false); }
public SecurityToken(String id, Instant created, Instant expires) { this.id = XMLUtils.getIDFromReference(id); this.created = created; this.expires = expires; }
private ClassLoader getClassLoader() { try { return Loader.getTCL(); } catch (Exception ex) { return null; } } }
/** * Add the WSU Namespace to this SC. The namespace is not added by default for * efficiency purposes. */ public void addWSUNamespace() { XMLUtils.setNamespace(element, WSConstants.WSU_NS, WSConstants.WSU_PREFIX); }
/** * Constructs a <code>Timestamp</code> object according * to the defined parameters. * * @param doc the SOAP envelope as <code>Document</code> * @param ttl the time to live (validity of the security semantics) in seconds */ public Timestamp(boolean milliseconds, Document doc, int ttl) { this(milliseconds, doc, new WSCurrentTimeSource(), ttl); }
/** * return the string representation of the token. * * @return the string representation of the token. */ public String toString() { return DOM2Writer.nodeToString(element); }
public SecurityToken(String id, Instant created, Instant expires) { this.id = XMLUtils.getIDFromReference(id); this.created = created; this.expires = expires; }
private ClassLoader getClassLoader() { try { return Loader.getTCL(); } catch (Exception ex) { return null; } } }
/** * Add the WSU Namespace to this BST. The namespace is not added by default for * efficiency purposes. */ public void addWSUNamespace() { XMLUtils.setNamespace(element, WSS4JConstants.WSU_NS, WSS4JConstants.WSU_PREFIX); }
/** * return the string representation of the token. * * @return the string representation of the token. */ public String toString() { return DOM2Writer.nodeToString(element); }
/** * Set the id */ public void setId(String id) { this.id = XMLUtils.getIDFromReference(id); }
/** * Returns the classloader to be used for loading the callback class * @param msgCtx The MessageContext * @return class loader */ public ClassLoader getClassLoader(Object msgCtx) { try { return Loader.getTCL(); } catch (Exception ex) { return null; } }
/** * Add the WSU Namespace to this UT. The namespace is not added by default for * efficiency purposes. */ public void addWSUNamespace() { XMLUtils.setNamespace(element, WSConstants.WSU_NS, WSConstants.WSU_PREFIX); }
/** * return the string representation of the token. * * @return the string representation of the token. */ public String toString() { return DOM2Writer.nodeToString(element); }
/** * Set the id */ public void setId(String id) { this.id = XMLUtils.getIDFromReference(id); }
/** * Returns the string representation of the token. * * @return a XML string representation */ public String toString() { return DOM2Writer.nodeToString(element); }
/** * return the string representation. * * @return a representation of this SecurityTokenReference element as a String */ public String toString() { return DOM2Writer.nodeToString(element); }
/** * Return the string representation. * * @return the string representation. */ public String toString() { return DOM2Writer.nodeToString(element); }