public static function fromString(string $role_name,
        GeneralNames $authority = null): self
    {
        return new self(new UniformResourceIdentifier($role_name), $authority);
    }
public static function fromString(string $role_name,
        GeneralNames $authority = null): self
    {
        return new self(new UniformResourceIdentifier($role_name), $authority);
    }
public static function fromString ( string $ role_name , GeneralNames $ authority = null ) : self { return new self ( new UniformResourceIdentifier ( $ role_name ) , $ authority ) ; }
Initialize from a role string.

@param string $role_name Role name in URI format
@param GeneralNames|null $authority Issuing authority
@return self
Initialize from a role string .