001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.commons.net.util; 018 019import java.security.cert.X509Certificate; 020 021/** 022 * Constants provided as public only for our own implementation, you can consider this private for now. 023 * 024 * @since 3.8.0 025 */ 026public class NetConstants { 027 028 /** 029 * An empty immutable {@code String} array. 030 */ 031 public static final String[] EMPTY_STRING_ARRAY = {}; 032 033 /** 034 * An empty immutable {@code byte} array. 035 */ 036 public static final byte[] EMPTY_BTYE_ARRAY = {}; 037 038 /** 039 * An empty immutable {link X509Certificate} array. 040 */ 041 public static final X509Certificate[] EMPTY_X509_CERTIFICATE_ARRAY = {}; 042 043 /** 044 * The index value when the end of the stream has been reached {@code -1}. 045 * 046 * @since 3.9.0 047 */ 048 public static final int EOS = -1; 049 050 /** 051 * Prevents instantiation. 052 */ 053 private NetConstants() { 054 } 055}