[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/PopulateBindi...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Apr 1 22:21:49 EDT 2014
Author: scantor
Date: Tue Apr 1 22:21:48 2014
New Revision: 5680
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5680&view=rev
Log:
Add missing component init checks.
Modified:
trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/PopulateBindingAndEndpointContexts.java
Modified: trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/PopulateBindingAndEndpointContexts.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/PopulateBindingAndEndpointContexts.java?rev=5680&r1=5679&r2=5680&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/PopulateBindingAndEndpointContexts.java (original)
+++ trunk/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/impl/profile/PopulateBindingAndEndpointContexts.java Tue Apr 1 22:21:48 2014
@@ -197,6 +197,8 @@
*/
public void setRelyingPartyContextLookupStrategy(
@Nonnull final Function<ProfileRequestContext,RelyingPartyContext> strategy) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
relyingPartyContextLookupStrategy = Constraint.isNotNull(strategy,
"RelyingPartyContext lookup strategy cannot be null");
}
@@ -208,6 +210,8 @@
*/
public void setMetadataContextLookupStrategy(
@Nonnull final Function<ProfileRequestContext,SAMLMetadataContext> strategy) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
metadataContextLookupStrategy = Constraint.isNotNull(strategy,
"SAMLMetadataContext lookup strategy cannot be null");
}
@@ -219,6 +223,8 @@
*/
public void setBindingContextLookupStrategy(
@Nonnull final Function<ProfileRequestContext,SAMLBindingContext> strategy) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
bindingContextLookupStrategy = Constraint.isNotNull(strategy,
"SAMLBindingContext lookup strategy cannot be null");
}
@@ -230,6 +236,8 @@
*/
public void setEndpointContextLookupStrategy(
@Nonnull final Function<ProfileRequestContext,SAMLEndpointContext> strategy) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
endpointContextLookupStrategy = Constraint.isNotNull(strategy,
"SAMLEndpointContext lookup strategy cannot be null");
}
More information about the commits
mailing list