[java-opensaml COMMIT] /trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/Signat...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Nov 20 16:23:29 EST 2014
Author: putmanb
Date: Thu Nov 20 16:23:29 2014
New Revision: 4161
URL: http://svn.shibboleth.net/view/java-opensaml?rev=4161&view=rev
Log:
Default in basic trust names strategy.
Better Javadoc on default values.
Modified:
trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/SignatureValidationFilter.java
Modified: trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/SignatureValidationFilter.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/SignatureValidationFilter.java?rev=4161&r1=4160&r2=4161&view=diff
==============================================================================
--- trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/SignatureValidationFilter.java (original)
+++ trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/SignatureValidationFilter.java Thu Nov 20 16:23:29 2014
@@ -74,7 +74,13 @@
/**
* Constructor.
*
+ * <p>
* Signature pre-validator defaults to {@link SAMLSignatureProfileValidator}.
+ * </p>
+ *
+ * <p>
+ * Dynamic trusted names strategy defaults to {@link BasicDynamicTrustedNamesStrategy}.
+ * </p>
*
* @param engine the trust engine used to validate signatures on incoming metadata.
*/
@@ -87,10 +93,13 @@
signatureTrustEngine = engine;
signaturePrevalidator = new SAMLSignatureProfileValidator();
+ dynamicTrustedNamesStrategy = new BasicDynamicTrustedNamesStrategy();
}
/**
* Get the strategy function for extracting dynamic trusted names from signed metadata elements.
+ *
+ * <p>Defaults to: {@link BasicDynamicTrustedNamesStrategy}.</p>
*
* @return the function, or null
*/
@@ -101,6 +110,8 @@
/**
* Get the strategy function for extracting dynamic trusted names from signed metadata elements.
*
+ * <p>Defaults to: {@link BasicDynamicTrustedNamesStrategy}.</p>
+ *
* @param strategy the function, may be null
*/
public void setDynamicTrustedNamesStrategy(@Nullable final Function<XMLObject, Set<String>> strategy) {
@@ -119,6 +130,8 @@
/**
* Get the validator used to perform pre-validation on Signature tokens.
*
+ * <p>Defaults to: {@link SAMLSignatureProfileValidator}.</p>
+ *
* @return the configured Signature validator, or null
*/
@Nullable public SignaturePrevalidator getSignaturePrevalidator() {
@@ -128,6 +141,8 @@
/**
* Set the validator used to perform pre-validation on Signature tokens.
*
+ * <p>Defaults to: {@link SAMLSignatureProfileValidator}.</p>
+ *
* @param validator the signature prevalidator to use
*/
public void setSignaturePrevalidator(@Nullable final SignaturePrevalidator validator) {
@@ -136,7 +151,8 @@
/**
* Gets whether incoming metadata's root element is required to be signed.
- * Defaults to <code>true</code>.
+ *
+ * <p>Defaults to <code>true</code>.</p>
*
* @return whether incoming metadata is required to be signed
*/
@@ -146,7 +162,8 @@
/**
* Sets whether incoming metadata's root element is required to be signed.
- * Defaults to <code>true</code>.
+ *
+ * <p>Defaults to <code>true</code>.</p>
*
* @param require whether incoming metadata is required to be signed
*/
@@ -155,7 +172,7 @@
}
/**
- * Get the set of default criteria used as input to the trust engine.
+ * Get the optional set of default criteria used as input to the trust engine.
*
* @return the criteria set
*/
@@ -164,7 +181,7 @@
}
/**
- * Set the set of default criteria used as input to the trust engine.
+ * Set the optional set of default criteria used as input to the trust engine.
*
* @param newCriteria the new criteria set to use
*/
More information about the commits
mailing list