1 package org.ejbca.core.model.ra; 2 3 4 12 public class SCEPRAExtendedInformation extends ExtendedInformation { 13 14 public static final float LATEST_VERSION = 0; 15 16 private static final String SCEPREQUEST = "sceprequest"; 17 private static final String USER = "user"; 18 19 23 public SCEPRAExtendedInformation(){ 24 super(); 25 setType(TYPE_SCEPRA); 26 } 27 28 31 public SCEPRAExtendedInformation(String sceprequest, String user) { 32 super(); 33 setType(TYPE_SCEPRA); 34 data.put(SCEPREQUEST, sceprequest); 35 data.put(USER,user); 36 } 37 38 41 public String getSCEPRequest() { 42 return (String ) data.get(SCEPREQUEST); 43 } 44 45 48 public String getUser() { 49 return (String ) data.get(USER); 50 } 51 52 55 public float getLatestVersion() { 56 return LATEST_VERSION; 57 } 58 61 public void upgrade() { 62 if(Float.compare(LATEST_VERSION, getVersion()) != 0) { 63 64 data.put(VERSION, new Float (LATEST_VERSION)); 65 } 66 } 67 68 } 69 | Popular Tags |