001package com.nimbusds.openid.connect.sdk.rp; 002 003 004/** 005 * Enumeration of OpenID Connect client application types. 006 * 007 * @author Vladimir Dzhuvinov 008 */ 009public enum ApplicationType { 010 011 012 /** 013 * Native application. 014 */ 015 NATIVE, 016 017 018 /** 019 * Web application. 020 */ 021 WEB; 022 023 024 /** 025 * Gets the default application type. 026 * 027 * @return {@link #WEB} 028 */ 029 public static ApplicationType getDefault() { 030 031 return WEB; 032 } 033 034 035 /** 036 * Returns the string identifier of this application type. 037 * 038 * @return The string identifier. 039 */ 040 @Override 041 public String toString() { 042 043 return super.toString().toLowerCase(); 044 } 045}