/** * Add validity conditions to the SAML2 Assertion * @param assertion * @param durationInMilis * @throws ConfigurationException * @throws IssueInstantMissingException */ public void createTimedConditions(AssertionType assertion, long durationInMilis) throws ConfigurationException, IssueInstantMissingException { AssertionUtil.createTimedConditions(assertion, durationInMilis); }
/** * Create an assertion * @param id * @param issuer * @return */ public AssertionType createAssertion(String id, NameIDType issuer) { return AssertionUtil.createAssertion(id, issuer); }
/** * Log the nodes in the document * * @param doc */ public static void logNodes(Document doc) { visit(doc, 0); }
/** * Get the current instant of time * * @return * * @throws ConfigurationException */ public static XMLGregorianCalendar getIssueInstant() throws ConfigurationException { return getIssueInstant(getCurrentTimeZoneID()); }
/** * Verify whether an {@link org.picketlink.identity.federation.saml.v2.assertion.AssertionType} has expired * @param assertionType * @return * @throws ConfigurationException */ public boolean hasExpired(AssertionType assertionType) throws ConfigurationException { return AssertionUtil.hasExpired(assertionType); } }
private XMLGregorianCalendar getCurrentTime() { try { return XMLTimeUtil.getIssueInstant(); } catch (ConfigurationException e) { throw new RuntimeException(e); } }
/** * Get the document as a string while ignoring any exceptions * * @param doc * @return */ public static String asString(Document doc) { String str = null; try { str = getDocumentAsString(doc); } catch (Exception ignore) { } return str; }
/** * <p> * Creates a {@code KeyValueType} that wraps the specified public key. This method supports DSA and RSA keys. * </p> * * @param key the {@code PublicKey} that will be represented as a {@code KeyValueType}. * * @return the constructed {@code KeyValueType} or {@code null} if the specified key is neither a DSA nor a RSA * key. */ public static KeyValueType createKeyValue(PublicKey key) { return SignatureUtil.createKeyValue(key); }
/** * Get the current instant of time * * @return * @throws ConfigurationException */ public static XMLGregorianCalendar getIssueInstant() throws ConfigurationException { return getIssueInstant(getCurrentTimeZoneID()); }
/** * Verify whether an {@link org.picketlink.identity.federation.saml.v2.assertion.AssertionType} has expired * @param assertionType * @return * @throws ConfigurationException */ public boolean hasExpired(AssertionType assertionType) throws ConfigurationException { return AssertionUtil.hasExpired(assertionType); } }
/** * Add validity conditions to the SAML2 Assertion * * @param assertion * @param durationInMilis * @throws ConfigurationException * @throws IssueInstantMissingException */ public void createTimedConditions(AssertionType assertion, long durationInMilis) throws ConfigurationException, IssueInstantMissingException { AssertionUtil.createTimedConditions(assertion, durationInMilis); }
/** * Create an assertion * * @param id * @param issuer * * @return */ public AssertionType createAssertion(String id, NameIDType issuer) { return AssertionUtil.createAssertion(id, issuer); }
/** * Log the nodes in the document * @param doc */ public static void logNodes(Document doc) { visit(doc, 0); }
/** * <p> * Creates a {@code KeyValueType} that wraps the specified public key. This method supports DSA and RSA keys. * </p> * * @param key the {@code PublicKey} that will be represented as a {@code KeyValueType}. * * @return the constructed {@code KeyValueType} or {@code null} if the specified key is neither a DSA nor a RSA * key. */ public static KeyValueType createKeyValue(PublicKey key) { return SignatureUtil.createKeyValue(key); }
/** * Get the current instant of time * * @return * * @throws ConfigurationException */ public static XMLGregorianCalendar getIssueInstant() throws ConfigurationException { return getIssueInstant(getCurrentTimeZoneID()); }
/** * Add validity conditions to the SAML2 Assertion * * @param assertion * @param durationInMilis * * @throws ConfigurationException * @throws IssueInstantMissingException */ public void createTimedConditions(AssertionType assertion, long durationInMilis) throws ConfigurationException, IssueInstantMissingException { AssertionUtil.createTimedConditions(assertion, durationInMilis); }
/** * Create an assertion * * @param id * @param issuer * @return */ public AssertionType createAssertion(String id, NameIDType issuer) { return AssertionUtil.createAssertion(id, issuer); }
/** * Log the nodes in the document * @param doc */ public static void logNodes(Document doc) { visit(doc, 0); }
/** * Add validity conditions to the SAML2 Assertion * * @param assertion * @param durationInMilis * * @throws ConfigurationException * @throws IssueInstantMissingException */ public void createTimedConditions(AssertionType assertion, long durationInMilis) throws ConfigurationException, IssueInstantMissingException { AssertionUtil.createTimedConditions(assertion, durationInMilis); }
/** * Create an assertion * * @param id * @param issuer * * @return */ public AssertionType createAssertion(String id, NameIDType issuer) { return AssertionUtil.createAssertion(id, issuer); }