/** * Returns the certificates used to sign this file. * * @return An array of Certificates. * @throws FileSystemException if an error occurs. */ @Override public Certificate[] getCertificates() throws FileSystemException { if (!fileObject.exists()) { throw new FileSystemException("vfs.provider/get-certificates-no-exist.error", fileObject); } /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-certificates-writing.error", file); } */ try { final Certificate[] certs = fileObject.doGetCertificates(); if (certs != null) { return certs; } return new Certificate[0]; } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-certificates.error", fileObject, e); } }
/** * Returns the certificates used to sign this file. * * @return An array of Certificates. * @throws FileSystemException if an error occurs. */ @Override public Certificate[] getCertificates() throws FileSystemException { if (!fileObject.exists()) { throw new FileSystemException("vfs.provider/get-certificates-no-exist.error", fileObject); } /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-certificates-writing.error", file); } */ try { final Certificate[] certs = fileObject.doGetCertificates(); if (certs != null) { return certs; } return new Certificate[0]; } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-certificates.error", fileObject, e); } }
/** * Returns the certificates used to sign this file. * * @return An array of Certificates. * @throws FileSystemException if an error occurs. */ @Override public Certificate[] getCertificates() throws FileSystemException { if (!fileObject.exists()) { throw new FileSystemException("vfs.provider/get-certificates-no-exist.error", fileObject); } /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-certificates-writing.error", file); } */ try { final Certificate[] certs = fileObject.doGetCertificates(); if (certs != null) { return certs; } return new Certificate[0]; } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-certificates.error", fileObject, e); } }
final Certificate[] certs = fileObject.doGetCertificates(); if (certs != null)