Java Code Examples for org.opensaml.common.SAMLVersion#VERSION_20
The following examples show how to use
org.opensaml.common.SAMLVersion#VERSION_20 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SamlTokenPolicyValidator.java From steady with Apache License 2.0 | 5 votes |
/** * Check the policy version against the received assertion */ private boolean checkVersion(SamlToken samlToken, AssertionWrapper assertionWrapper) { if ((samlToken.isUseSamlVersion11Profile10() || samlToken.isUseSamlVersion11Profile11()) && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_11) { return false; } else if (samlToken.isUseSamlVersion20Profile11() && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_20) { return false; } return true; }
Example 2
Source File: SamlTokenPolicyValidator.java From steady with Apache License 2.0 | 5 votes |
/** * Check the policy version against the received assertion */ private boolean checkVersion(SamlToken samlToken, AssertionWrapper assertionWrapper) { if ((samlToken.isUseSamlVersion11Profile10() || samlToken.isUseSamlVersion11Profile11()) && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_11) { return false; } else if (samlToken.isUseSamlVersion20Profile11() && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_20) { return false; } return true; }
Example 3
Source File: SamlTokenPolicyValidator.java From steady with Apache License 2.0 | 5 votes |
/** * Check the policy version against the received assertion */ private boolean checkVersion(SamlToken samlToken, AssertionWrapper assertionWrapper) { if ((samlToken.isUseSamlVersion11Profile10() || samlToken.isUseSamlVersion11Profile11()) && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_11) { return false; } else if (samlToken.isUseSamlVersion20Profile11() && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_20) { return false; } return true; }
Example 4
Source File: SamlTokenPolicyValidator.java From steady with Apache License 2.0 | 5 votes |
/** * Check the policy version against the received assertion */ private boolean checkVersion(SamlToken samlToken, AssertionWrapper assertionWrapper) { if ((samlToken.isUseSamlVersion11Profile10() || samlToken.isUseSamlVersion11Profile11()) && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_11) { return false; } else if (samlToken.isUseSamlVersion20Profile11() && assertionWrapper.getSamlVersion() != SAMLVersion.VERSION_20) { return false; } return true; }
Example 5
Source File: RequestAbstractTypeImpl.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Constructor. * * @param namespaceURI the namespace the element is in * @param elementLocalName the local name of the XML element this Object represents * @param namespacePrefix the prefix for the given namespace */ protected RequestAbstractTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); version = SAMLVersion.VERSION_20; }
Example 6
Source File: AssertionImpl.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Constructor. * * @param namespaceURI the namespace the element is in * @param elementLocalName the local name of the XML element this Object represents * @param namespacePrefix the prefix for the given namespace */ protected AssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); version = SAMLVersion.VERSION_20; statements = new IndexedXMLObjectChildrenList<Statement>(this); }
Example 7
Source File: StatusResponseTypeImpl.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Constructor. * * @param namespaceURI the namespace the element is in * @param elementLocalName the local name of the XML element this Object represents * @param namespacePrefix the prefix for the given namespace */ protected StatusResponseTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); version = SAMLVersion.VERSION_20; }