src/Identity/EntityAuthData.php
public function getJWT()
	{
		if($this->personalKeyPair === NULL)
			throw new \Exception("JWT cannot be built without the personalKey");
		
		// create and sign JWT
		$signer = new Sha512();
		
		$personalPrivateKey = PrivateKey::formatPEM($this->personalKeyPair->getPrivateKey());
		
		$token = (new Builder())
			->set('socialRecord', base64_encode($this->socialRecord->getJSONString()))
			->sign($signer, $personalPrivateKey)
			->getToken();
		
		return $token->__toString();
	}
public function getJWT()
	{
		if($this->personalKeyPair === NULL)
			throw new \Exception("JWT cannot be built without the personalKey");
		
		// create and sign JWT
		$signer = new Sha512();
		
		$personalPrivateKey = PrivateKey::formatPEM($this->personalKeyPair->getPrivateKey());
		
		$token = (new Builder())
			->set('socialRecord', base64_encode($this->socialRecord->getJSONString()))
			->sign($signer, $personalPrivateKey)
			->getToken();
		
		return $token->__toString();
	}
public function getJWT ( ) { if ( $ this -> personalKeyPair === NULL ) throw new \ Exception ( "JWT cannot be built without the personalKey" ) ; // create and sign JWT
 $ signer = new Sha512 ( ) ; $ personalPrivateKey = PrivateKey :: formatPEM ( $ this -> personalKeyPair -> getPrivateKey ( ) ) ; $ token = ( new Builder ( ) ) -> set ( 'socialRecord' , base64_encode ( $ this -> socialRecord -> getJSONString ( ) ) ) -> sign ( $ signer , $ personalPrivateKey ) -> getToken ( ) ; return $ token -> __toString ( ) ; }
Creates  a signed JWT to be pushed to the GSLS. If the personalKeyPair is not set, an exception is thrown

@return String The JWT
Creates a signed JWT to be pushed to the GSLS . If the personalKeyPair is not set an exception is thrown