[java-opensaml COMMIT] /trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/EntityAttributes...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Sep 24 14:17:16 EDT 2015
Author: scantor
Date: Thu Sep 24 14:17:16 2015
New Revision: 4341
URL: http://svn.shibboleth.net/view/java-opensaml?rev=4341&view=rev
Log:
Add a simpler constructor that nulls the format.
Modified:
trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicate.java
Modified: trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicate.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicate.java?rev=4341&r1=4340&r2=4341&view=diff
==============================================================================
--- trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicate.java (original)
+++ trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicate.java Thu Sep 24 14:17:16 2015
@@ -215,7 +215,20 @@
/** Regular expressions that must be satisfied. */
@Nonnull @NonnullElements private List<Pattern> regexps;
-
+
+ /**
+ * Constructor.
+ *
+ * @param name Attribute Name to match
+ */
+ public Candidate(@Nonnull @NotEmpty final String name) {
+ nam = Constraint.isNotNull(StringSupport.trimOrNull(name), "Attribute Name cannot be null or empty");
+ nameFormat = null;
+
+ values = Collections.emptyList();
+ regexps = Collections.emptyList();
+ }
+
/**
* Constructor.
*
More information about the commits
mailing list