au.gov.nehta.vendorlibrary.hi.sample
Class ReadReferenceDataClientSample

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.hi.sample.ReadReferenceDataClientSample

public final class ReadReferenceDataClientSample
extends java.lang.Object

Requirements:

a) A Transport Layer Security (TLS) public/private key pair and its associated public certificate. These are used to authenticate the client to the HI Service server instance being used during the Transport Layer Security (TLS) handshake. They are typically stored in a Java key store file.
The user's certificate, private and public keys go into keystore.jks, while certificates of external parties goes into truststore.jks Java key store file.

b) A signing public/private key pair and its associated public certificate. These are used by the client to sign all Web Service requests to the HI Service server. The associated public certificate is always an organisation certificate provided by a recognized Certificate Authority. Store the public and private signing key in truststore.jks and keystore.jks Java key store file, which may be the same as the one used for the key pair in step (a).

c) The certificate of the Certificate Authority (CA) which signed the HI Service server's TLS certificate. This certificate is used to authenticate the HI Service server certificate during the TLS handshake. The Medicare vendor environment certificate has been stored in the truststore.jks public Java key store file.

d) Medicare authentication details. These will be provided by Medicare, include a Qualified Identifier identifying you to Medicare. These details should be included as a Java QualifiedId object.

e) Client product information details (PCIN) These include a Qualified Identifier for the product, the product name and version, and the product platform. These should all be instantiated in a Java Holder object.

f) The endpoint URLs for the HI Service.

g) Parameters for Read Reference Data Lookup

h) If required, update the class variable if the chosen values are different to those provided.


Method Summary
static void main(java.lang.String[] args)
          Main method to invoke Read Reference lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.security.GeneralSecurityException,
                        java.io.IOException
Main method to invoke Read Reference lookup.

Parameters:
args - user arguments for main method invocation (NOT REQUIRED)
Throws:
java.security.GeneralSecurityException - in an event of security / certificate error.
java.io.IOException - in an event of IO exception.