class AthenzIdentities {

    public static AthenzIdentity from(AthenzDomain domain, String identityName) {
        if (domain.equals(USER_PRINCIPAL_DOMAIN)) {
            return AthenzUser.fromUserId(identityName);
        } else {
            return new AthenzService(domain, identityName);
        }
    }

    private  AthenzIdentities();

}