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