protected void validateRequiredNameIdFormatIfAny ( final RequestAbstractType authnRequest , final SamlRegisteredServiceServiceProviderMetadataFacade adaptor , final List < String > supportedNameFormats , final String requiredNameFormat ) { if ( StringUtils . isNotBlank ( requiredNameFormat ) && ! supportedNameFormats . contains ( requiredNameFormat ) ) { LOGGER . warn ( "Required NameID format [{}] in the AuthN request issued by [{}] is not supported based on the metadata for [{}]. " + "The requested NameID format may not be honored. You should consult the metadata for this service " + "and ensure the requested NameID format is present in the collection of supported " + "metadata formats in the metadata, which are the following: [{}]" , requiredNameFormat , SamlIdPUtils . getIssuerFromSamlObject ( authnRequest ) , adaptor . getEntityId ( ) , adaptor . getSupportedNameIdFormats ( ) ) ; } }
Validate required name id format if any .