001package com.pingidentity.developer.pingid; 002 003public class Application { 004 public static final String RESCUECODE_APPLICATION = "rescuecode"; 005 public static final String WEB_APPLICATION = "web"; 006 private String name; 007 private String logoUrl; 008 private String spAlias; 009 010 public Application(final String name, final String spAlias) { 011 this.name = name; 012 this.spAlias = spAlias; 013 } 014 015 public Application(final String name){ 016 this(name, WEB_APPLICATION); 017 } 018 019 public static final Application GetWebApp(final String name) { 020 return new Application(name); 021 } 022 023 public static final Application GetRescueApp(final String name) { 024 return new Application(name, RESCUECODE_APPLICATION); 025 } 026 027 String getName() { return this.name; } 028 String getLogoUrl() { return this.logoUrl; } 029 String getSpAlias() { return this.spAlias; } 030}