001 package railo.runtime.functions.other; 002 003 import railo.runtime.PageContext; 004 import railo.runtime.exp.PageException; 005 import railo.runtime.ext.function.Function; 006 import railo.runtime.tag.Admin; 007 import railo.runtime.tag.util.DeprecatedUtil; 008 import railo.runtime.type.Query; 009 010 public final class SSLCertificateList implements Function { 011 012 private static final long serialVersionUID = 1114950592159155566L; 013 014 public static Query call(PageContext pc, String host) throws PageException { 015 return call(pc, host, 443); 016 } 017 018 public static Query call(PageContext pc, String host, double port) throws PageException { 019 DeprecatedUtil.function(pc, "SSLCertificateList"); 020 return Admin.getSSLCertificate(pc.getConfig(), host, (int)port); 021 } 022 023 }