public function createWsseHeader($username, $digest, $nonce, $createdAt)
    {
        return sprintf(
            'UsernameToken Username="%s", PasswordDigest="%s", Nonce="%s", Created="%s"',
            $username,
            $digest,
            base64_encode($nonce),
            $createdAt
        );
    }
public function createWsseHeader($username, $digest, $nonce, $createdAt)
    {
        return sprintf(
            'UsernameToken Username="%s", PasswordDigest="%s", Nonce="%s", Created="%s"',
            $username,
            $digest,
            base64_encode($nonce),
            $createdAt
        );
    }
public function createWsseHeader ( $ username , $ digest , $ nonce , $ createdAt ) { return sprintf ( 'UsernameToken Username="%s", PasswordDigest="%s", Nonce="%s", Created="%s"' , $ username , $ digest , base64_encode ( $ nonce ) , $ createdAt ) ; }
Create the WSSE header

@param string $username
@param string $nonce
@param string $createdAt,
@param string $password

@return string
Create the WSSE header