Blog

openssl_verify
openssl_verify(PHP 4 >= 4.0.4, PHP 5)openssl_verify — Verify signatureDescription ¶ ¶int openssl_verify ( string $data , string $signature , mixed $pub_key_id [, mixed $signature_alg = OPENSSL_ALGO_SHA1 ] )openssl_verify() verifies that the signature is correct for the specified data using the p[ More ]
openssl_sign
openssl_sign(PHP 4 >= 4.0.4, PHP 5)openssl_sign — Generate signatureDescription ¶ ¶bool openssl_sign ( string $data , string &$signature , mixed $priv_key_id [, mixed $signature_alg = OPENSSL_ALGO_SHA1 ] )openssl_sign() computes a signature for the specified data by generating a cryptographic di[ More ]
openssl_get_publickey
openssl_get_publickey(PHP 4 >= 4.0.4, PHP 5)openssl_get_publickey — Alias of openssl_pkey_get_public()Description ¶ ¶This function is an alias of: openssl_pkey_get_public().add a note add a noteUser Contributed NotesThere are no user contributed notes for this page.[ More ]
openssl_get_privatekey
openssl_get_privatekey(PHP 4 >= 4.0.4, PHP 5)openssl_get_privatekey — Alias of openssl_pkey_get_private()Description ¶ ¶This function is an alias of: openssl_pkey_get_private().add a note add a noteUser Contributed NotesThere are no user contributed notes for this page. [ More ]
openssl_digest
openssl_digest(PHP 5 >= 5.3.0)openssl_digest — Computes a digestDescription ¶ ¶string openssl_digest ( string $data , string $method [, bool $raw_output = false ] )Computes a digest hash value for the given data using a given method, and returns a raw or binhex encoded string.WarningThis functio[ More ]
openssl_csr_sign
openssl_csr_sign(PHP 4 >= 4.2.0, PHP 5)openssl_csr_sign — Sign a CSR with another certificate (or itself) and generate a certificateDescription ¶ ¶resource openssl_csr_sign ( mixed $csr , mixed $cacert , mixed $priv_key , int $days [, array $configargs [, int $serial = 0 ]] )openssl_csr_sign[ More ]
openssl_csr_new
openssl_csr_new(PHP 4 >= 4.2.0, PHP 5)openssl_csr_new — Generates a CSRDescription ¶ ¶mixed openssl_csr_new ( array $dn , resource &$privkey [, array $configargs [, array $extraattribs ]] )openssl_csr_new() generates a new CSR (Certificate Signing Request) based on the information provided by dn[ More ]
openssl_csr_export
openssl_csr_export(PHP 4 >= 4.2.0, PHP 5)openssl_csr_export — Exports a CSR as a stringDescription bool openssl_csr_export ( resource $csr , string &$out [, bool $notext = true ] )openssl_csr_export() takes the Certificate Signing Request represented by csr and stores it as ascii-armoured text int[ More ]
httpurlconnection is very slow on Android 4.2
I can succesfully connect, send and receive data by using httpurlconnection. But it takes very long time to load all the data on my phone (Samsung s4, 4.2) and on android 4.2 emulator. But it takes almost 1-2 seconds (which is very fast) to load pics on Android 2.3.x emulator. Faster than my galaxy [ More ]
Digitally sign PDF document
 Digitally sign PDF document I try to add this code:PHP Code:$certificate="file:///data/web/virtuals/dev.smarthost.cz/secure/smarthost.crt"; $info = array(   'Name' => 'TCPDF',   'Location' => 'Office',   'Reason' => 'Testing TCPDF',   'ContactInfo' => 'http://www.tcpdf.org', ); $pdf->setSignature($[ More ]
Files: list
Files: listRequires authorization Lists the user's files. Try it now or see an example. Requests with files.list accept the q parameter, which is a search query combining one or more search terms. For more information, see Search for files. Note: This method returns all files by default. This includ[ More ]
Metadata Extractor for PDF Forms broken
Metadata Extractor for PDF Forms broken I think that PDFBox has a bug that prevents reading PDF Forms to populate metadata.https://issues.apache.org/jira/browse/PDFBOX-1100As a result I need to develop a way to read the values from the fields in a PDF Form.It appears the Acrobat is capable of runnin[ More ]
Interface IPDFDocument
Interface IPDFDocument--------------------------------------------------------------------------------public interface IPDFDocumentIPDFDocument represents a PDF document. IPDFDocument can be used and manpulated to get the PDF byte array, to get the data contained within the document, to get the sign[ More ]
URLs, URLConnections, and ContentHandlers
URLs, URLConnections, and ContentHandlersThe java.net package, in addition to object-oriented representations of IP sockets, also provides objects that support the HTTP protocol for accessing data in the form of addressable documents. HTTP is really an extension of the underlying IP protocol we disc[ More ]
The ClassLoader
2.3. The ClassLoaderThe Java runtime environment is based upon a virtual machine that interprets, verifies, and executes classes in the form of platform-independent bytecodes. In addition, the Java API includes a mechanism for you to load class definitions in their bytecode form, and integrate them [ More ]
Networking in Java
Chapter 2. Networking in JavaContents:Sockets and Streams URLs, URLConnections, and ContentHandlers The ClassLoader We saw in Chapter 1, "Introduction" how the socket and stream classes in the java.net and java.io packages could be used to do basic networking between agents. In this chapter we take [ More ]
JAX-WS Hello World Example – RPC Style
JAX-WS Hello World Example – RPC StyleJAX-WS is bundled with JDK 1.6, which makes Java web service development easier to develop. This tutorial shows you how to do the following tasks:1.Create a SOAP-based RPC style web service endpoint by using JAX-WS.2.Create a Java web service client manually.3[ More ]
Dropbox App example in Java CLI
Dropbox App example in Java CLILet’s prototype a Dropbox Application who send file from you client to a server without using FTP.We will look more in detail into JCommander library and how to authenticate and send file into your dropbox.Recommended reading•how to create an executable jar file•[ More ]
Java - String Class
Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects.The Java platform provides the String class to create and manipulate strings.Creating Strings:The most direct way to create a string is to write:String greeting =[ More ]
Add a new line to the end of a JtextArea
Add a new line to the end of a JtextAreaInstead of using JTextArea.setText(String text), use JTextArea.append(String text).Appends the given text to the end of the document. Does nothing if the model is null or the string is null or empty. This will add text on to the end of your JTextArea.Another[ More ]