File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ Remember to provide it to the Signature builder if you are sending a `GET RelayS
579579signature validation process will fail at the Identity Provider.
580580
581581The Service Provider will sign the request/responses with its private key.
582- The Identity Provider will validate the sign of the received request/responses with the public x500 cert of the
582+ The Identity Provider will validate the sign of the received request/responses with the public x509 cert of the
583583Service Provider.
584584
585585Notice that this toolkit uses ' settings.certificate' and ' settings.private_key' for the sign and decrypt processes.
Original file line number Diff line number Diff line change @@ -341,6 +341,17 @@ def allowed_clock_drift
341341 return options [ :allowed_clock_drift ] . to_f
342342 end
343343
344+ # Checks if the SAML Response contains or not an EncryptedAssertion element
345+ # @return [Boolean] True if the SAML Response contains an EncryptedAssertion element
346+ #
347+ def assertion_encrypted?
348+ ! REXML ::XPath . first (
349+ document ,
350+ "(/p:Response/EncryptedAssertion/)|(/p:Response/a:EncryptedAssertion/)" ,
351+ { "p" => PROTOCOL , "a" => ASSERTION }
352+ ) . nil?
353+ end
354+
344355 private
345356
346357 # Validates the SAML Response (calls several validation methods)
@@ -967,17 +978,6 @@ def decrypt_assertion_from_document(document_copy)
967978 XMLSecurity ::SignedDocument . new ( response_node . to_s )
968979 end
969980
970- # Checks if the SAML Response contains or not an EncryptedAssertion element
971- # @return [Boolean] True if the SAML Response contains an EncryptedAssertion element
972- #
973- def assertion_encrypted?
974- ! REXML ::XPath . first (
975- document ,
976- "(/p:Response/EncryptedAssertion/)|(/p:Response/a:EncryptedAssertion/)" ,
977- { "p" => PROTOCOL , "a" => ASSERTION }
978- ) . nil?
979- end
980-
981981 # Decrypts an EncryptedAssertion element
982982 # @param encrypted_assertion_node [REXML::Element] The EncryptedAssertion element
983983 # @return [REXML::Document] The decrypted EncryptedAssertion element
You can’t perform that action at this time.
0 commit comments