1 17 18 package org.apache.geronimo.console.core.keystore; 19 20 import java.util.Date ; 21 22 public class KeyEntryInfo { 23 public static final String TRUSTED_CERT_TYPE = "trusted certificate"; 24 25 public static final String PRIVATE_KEY_TYPE = "private key"; 26 27 private String alias; 28 29 private String type; 30 31 private Date created; 32 33 public KeyEntryInfo(String alias, String type, Date created) { 34 this.alias = alias; 35 this.type = type; 36 this.created = created; 37 } 38 39 public String getAlias() { 40 return this.alias; 41 } 42 43 public String getType() { 44 return this.type; 45 } 46 47 public Date getCreated() { 48 return this.created; 49 } 50 51 public boolean isTrustedCertificate() { 52 return type.equals(TRUSTED_CERT_TYPE); 53 } 54 55 public boolean isPrivateKey() { 56 return type.equals(PRIVATE_KEY_TYPE); 57 } 58 } 59 | Popular Tags |