111 } 112 113 /** 114 * Returns the <code>CodeSigner</code> objects for this entry, or 115 * <code>null</code> if none. This method can only be called once 116 * the <code>JarEntry</code> has been completely verified by reading 117 * from the entry input stream until the end of the stream has been 118 * reached. Otherwise, this method will return <code>null</code>. 119 * 120 * <p>The returned array comprises all the code signers that have signed 121 * this entry. 122 * 123 * @return the <code>CodeSigner</code> objects for this entry, or 124 * <code>null</code> if none. 125 * 126 * @since 1.5 127 */ 128 public CodeSigner[] getCodeSigners() { 129 return signers == null ? null : signers.clone(); 130 } 131 } | 111 } 112 113 /** 114 * Returns the <code>CodeSigner</code> objects for this entry, or 115 * <code>null</code> if none. This method can only be called once 116 * the <code>JarEntry</code> has been completely verified by reading 117 * from the entry input stream until the end of the stream has been 118 * reached. Otherwise, this method will return <code>null</code>. 119 * 120 * <p>The returned array comprises all the code signers that have signed 121 * this entry. 122 * 123 * @return the <code>CodeSigner</code> objects for this entry, or 124 * <code>null</code> if none. 125 * 126 * @since 1.5 127 */ 128 public CodeSigner[] getCodeSigners() { 129 return signers == null ? null : signers.clone(); 130 } 131 132 /** 133 * Returns the real name of this {@code JarEntry}. 134 * 135 * If this {@code JarEntry} is an entry of a 136 * <a href="JarFile.html#multirelease">multi-release jar file</a> and the 137 * {@code JarFile} is configured to be processed as such, the name returned 138 * by this method is the path name of the versioned entry that the 139 * {@code JarEntry} represents, rather than the path name of the base entry 140 * that {@link #getName()} returns. If the {@code JarEntry} does not represent 141 * a versioned entry of a multi-release {@code JarFile} or the {@code JarFile} 142 * is not configured for processing a multi-release jar file, this method 143 * returns the same name that {@link #getName()} returns. 144 * 145 * @return the real name of the JarEntry 146 * 147 * @since 10 148 */ 149 public String getRealName() { 150 return super.getName(); 151 } 152 } |