src/PbjxTokenSigner.php
public function sign(string $content, string $aud, ?string $kid = null): PbjxToken
    {
        $kid = $kid ?: $this->defaultKid;
        return PbjxToken::create($content, $aud, $kid, $this->getSecret($kid));
    }
public function sign(string $content, string $aud, ?string $kid = null): PbjxToken
    {
        $kid = $kid ?: $this->defaultKid;
        return PbjxToken::create($content, $aud, $kid, $this->getSecret($kid));
    }
public function sign ( string $ content , string $ aud , ? string $ kid = null ) : PbjxToken { $ kid = $ kid ? : $ this -> defaultKid ; return PbjxToken :: create ( $ content , $ aud , $ kid , $ this -> getSecret ( $ kid ) ) ; }
Creates a new signed token for the provided content.

@param string $content Pbjx content that is being signed
@param string $aud     Pbjx endpoint this token will be sent to
@param string $kid     Key ID to use to sign the token.

@return PbjxToken
Creates a new signed token for the provided content .