public void retrieveServiceTicket( String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm ) throws WSSecurityException { retrieveServiceTicket(jaasLoginModuleName, callbackHandler, serviceName, isUsernameServiceNameForm, false); }
/** * Method containsKeyIdentifier. * * @return true if the <code>SecurityTokenReference</code> contains * a <code>wsse:KeyIdentifier</code> element */ public boolean containsKeyIdentifier() { return lengthKeyIdentifier() > 0; }
/** * Returns the BST Token element. * The method can be called any time after <code>prepare()</code>. * @return the BST Token element */ public Element getBinarySecurityTokenElement() { if (bstToken != null) { return bstToken.getElement(); } return null; }
/** * @return Returns the sctId. */ public String getSctId() { if (sct != null) { return sct.getID(); } return sctId; }
/** * Gets the secret key as per WS-Trust spec. This method uses default setting * to generate the secret key. These default values are suitable for .NET * WSE. * * @return a secret key constructed from information contained in this * username token */ public byte[] getSecretKey() { return getSecretKey(WSConstants.WSE_DERIVED_KEY_LEN, WSConstants.LABEL_FOR_DERIVED_KEY); }
/** * Method containsReference * * @return true if the <code>SecurityTokenReference</code> contains * a <code>wsse:Reference</code> element */ public boolean containsReference() { return lengthReference() > 0; }
/** * Method lengthReference. * * @return number of <code>wsse:Reference</code> elements in * the <code>SecurityTokenReference</code> */ public int lengthReference() { return length(WSConstants.WSSE_NS, "Reference"); }
/** * Get the id of the BSt generated during <code>prepare()</code>. * * @return Returns the the value of wsu:Id attribute of the * BinaruSecurityToken element. */ public String getBSTTokenId() { if (bstToken == null) { return null; } return bstToken.getID(); }
/** * This constructor creates a new X509 certificate element. * * @param doc */ public X509Security(Document doc) { super(doc); setValueType(X509_V3_TYPE); }
/** * Get the timestamp element generated during <code>prepare()</code>. */ public Element getElement() { if (ts == null) { return null; } return ts.getElement(); } }
/** * Get the created timestamp. * * @return the data from the created time element. */ public String getCreated() { return nodeString(elementCreated); }
/** * Constructor. */ public PKIPathSecurity(Document doc) { super(doc); setValueType(PKI_TYPE); }
/** * Returns the <code>UsernameToken</code> element. * * The method can be called any time after <code>prepare()</code>. * This allows to insert the UsernameToken element at any position in the * Security header. * * @return the Username Token element */ public Element getUsernameTokenElement() { return ut.getElement(); } }
/** * Method containsX509Data * * @return true if the <code>SecurityTokenReference</code> contains * a <code>ds:X509Data</code> element */ public boolean containsX509Data() { return lengthX509Data() > 0; }
/** * Get the SignatureConfirmation element generated during * <code>prepare()</code>. * * @return Return the SignatureConfirmation element or null if <code>prepare()</code> * was not called before. */ public Element getSignatureConfirmationElement() { return (sc != null) ? sc.getElement() : null; }
public void retrieveServiceTicket( String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm, boolean requestCredDeleg ) throws WSSecurityException { retrieveServiceTicket(jaasLoginModuleName, callbackHandler, serviceName, isUsernameServiceNameForm, requestCredDeleg, null); }
/** * Gets the secret key as per WS-Trust spec. This method uses default setting * to generate the secret key. These default values are suitable for .NET * WSE. * * @return a secret key constructed from information contained in this * username token */ public byte[] getSecretKey(int keylen) { return getSecretKey(keylen, WSConstants.LABEL_FOR_DERIVED_KEY); }
/** * Method containsReference * * @return true if the <code>SecurityTokenReference</code> contains * a <code>wsse:Reference</code> element */ public boolean containsReference() { return lengthReference() > 0; }
/** * Method lengthX509Data. * * @return number of <code>ds:IssuerSerial</code> elements in * the <code>SecurityTokenReference</code> */ public int lengthX509Data() { return length(WSConstants.SIG_NS, WSConstants.X509_DATA_LN); }
public void retrieveServiceTicket( String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm, boolean requestCredDeleg ) throws WSSecurityException { retrieveServiceTicket(jaasLoginModuleName, callbackHandler, serviceName, isUsernameServiceNameForm, requestCredDeleg, null); }