Class AbstractBindingPolicyValidator

    • Constructor Detail

      • AbstractBindingPolicyValidator

        public AbstractBindingPolicyValidator()
    • Method Detail

      • validateTimestamp

        protected boolean validateTimestamp​(boolean includeTimestamp,
                                            boolean transportBinding,
                                            WSHandlerResult results,
                                            List<WSSecurityEngineResult> signedResults,
                                            Message message)
        Validate a Timestamp
        Parameters:
        includeTimestamp - whether a Timestamp must be included or not
        transportBinding - whether the Transport binding is in use or not
        signedResults - the signed results list
        message - the Message object
        Returns:
        whether the Timestamp policy is valid or not
      • validateEntireHeaderAndBodySignatures

        protected boolean validateEntireHeaderAndBodySignatures​(List<WSSecurityEngineResult> signedResults)
        Validate the entire header and body signature property.
      • isTokenProtected

        protected boolean isTokenProtected​(List<WSSecurityEngineResult> results,
                                           List<WSSecurityEngineResult> signedResults)
        Check whether the token protection policy is followed. In other words, check that the signature token was itself signed.
      • isSignatureEncrypted

        protected boolean isSignatureEncrypted​(List<WSSecurityEngineResult> results)
        Check whether the primary Signature (and all SignatureConfirmation) elements were encrypted
      • assertDerivedKeys

        protected void assertDerivedKeys​(AbstractToken token,
                                         org.apache.cxf.ws.policy.AssertionInfoMap aim)