Class HolderOfKeyMetadataSupport
java.lang.Object
se.swedenconnect.opensaml.saml2.metadata.HolderOfKeyMetadataSupport
Support methods for holder-of-key specific metadata elements.
- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AssertionConsumerServicegetHokAssertionConsumerService(SPSSODescriptor ssoDescriptor, String binding) Given anSPSSODescriptorelement and a binding URI, the method locates a matchingAssertionConsumerServiceHolder-of-key element.static List<AssertionConsumerService> getHokAssertionConsumerServices(SPSSODescriptor ssoDescriptor) Given anSPSSODescriptorelement the method locates allAssertionConsumerServiceelements that have aBindingattribute set to "urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser", i.e., an endpoint for Holder-of-key.static SingleSignOnServicegetHoKSingleSignOnService(IDPSSODescriptor ssoDescriptor, String binding) Given anIDPSSODescriptorelement and a binding (redirect/post), the method locates a matchingSingleSignOnServiceHolder-of-key element.static List<SingleSignOnService> getHokSingleSignOnServices(IDPSSODescriptor ssoDescriptor) Given anIDPSSODescriptorelement the method locates allSingleSignOnServiceelements that have aBindingattribute set to "urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser", i.e., a service element for Holder-of-key.static booleanPredicate that tells if the suppliedAssertionConsumerServiceis a HoK endpoint.static booleanPredicate that tells if the suppliedSingleSignOnServiceis a HoK endpoint.
-
Field Details
-
HOK_WEBSSO_PROFILE_URI
URI identifier for the Holder-of-key profile URI.- See Also:
-
HOK_PROTOCOL_BINDING_ATTRIBUTE
The QName for the HoK ProtocolBinding attribute.
-
-
Method Details
-
getHokSingleSignOnServices
Given anIDPSSODescriptorelement the method locates allSingleSignOnServiceelements that have aBindingattribute set to "urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser", i.e., a service element for Holder-of-key.- Parameters:
ssoDescriptor- the IDPSSODescriptor- Returns:
- a (possible empty) list of matching SingleSignOnService objects
-
getHoKSingleSignOnService
public static SingleSignOnService getHoKSingleSignOnService(IDPSSODescriptor ssoDescriptor, String binding) Given anIDPSSODescriptorelement and a binding (redirect/post), the method locates a matchingSingleSignOnServiceHolder-of-key element.- Parameters:
ssoDescriptor- the IDPSSODescriptorbinding- the actual binding URI- Returns:
- a SingleSignOnService or null if no matching element is found
-
isHoKSingleSignOnService
Predicate that tells if the suppliedSingleSignOnServiceis a HoK endpoint.- Parameters:
sso- the SingleSignOnService to test- Returns:
- true if the supplied object is a HoK endpoint and false otherwise
-
getHokAssertionConsumerServices
public static List<AssertionConsumerService> getHokAssertionConsumerServices(SPSSODescriptor ssoDescriptor) Given anSPSSODescriptorelement the method locates allAssertionConsumerServiceelements that have aBindingattribute set to "urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser", i.e., an endpoint for Holder-of-key.- Parameters:
ssoDescriptor- the SPSSODescriptor- Returns:
- a (possible empty) list of matching AssertionConsumerService objects
-
getHokAssertionConsumerService
public static AssertionConsumerService getHokAssertionConsumerService(SPSSODescriptor ssoDescriptor, String binding) Given anSPSSODescriptorelement and a binding URI, the method locates a matchingAssertionConsumerServiceHolder-of-key element.- Parameters:
ssoDescriptor- the SPSSODescriptorbinding- the actual binding URI- Returns:
- a AssertionConsumerService or null if no matching element is found
-
isHoKAssertionConsumerService
Predicate that tells if the suppliedAssertionConsumerServiceis a HoK endpoint.- Parameters:
acs- the AssertionConsumerService to test- Returns:
- true if the supplied object is a HoK endpoint and false otherwise
-