presto-spi/src/main/java/io/prestosql/spi/security/PrestoPrincipal.java/PrestoPrincipal/getType
class PrestoPrincipal:    @JsonProperty
    public PrincipalType getType()
    {
        return type;
    }