de.fhhannover.inform.trust.ifmapj
Class IfmapJ

java.lang.Object
  extended by de.fhhannover.inform.trust.ifmapj.IfmapJ

public class IfmapJ
extends Object

Entry class to do IF-MAP 2.0 communication using IfmapJ.

Author:
aw

Constructor Summary
IfmapJ()
           
 
Method Summary
static IdentifierFactory createIdentifierFactory()
          Deprecated. Use Identifiers directly.
static RequestFactory createRequestFactory()
          Deprecated. Use Requests directly.
static SSRC createSSRC(String url, KeyManager[] kms, TrustManager[] tms)
          Create a new SSRC object to operate on the given URL using certificate-based authentication.
static SSRC createSSRC(String url, String user, String pass, TrustManager[] tms)
          Create a new SSRC object to operate on the given url using basic authentication.
static StandardIfmapMetadataFactory createStandardMetadataFactory()
          Crate a new StandardIfmapMetadataFactory object to create standard metadata defined by IF-MAP 2.0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfmapJ

public IfmapJ()
Method Detail

createSSRC

public static SSRC createSSRC(String url,
                              String user,
                              String pass,
                              TrustManager[] tms)
                       throws InitializationException
Create a new SSRC object to operate on the given url using basic authentication.

Parameters:
url - the URL to connect to
user - basic authentication user
pass - basic authentication password
tms - TrustManager instances to initialize the SSLContext with.
Returns:
a new SSRC that uses basic authentication
Throws:
IOException
InitializationException

createSSRC

public static SSRC createSSRC(String url,
                              KeyManager[] kms,
                              TrustManager[] tms)
                       throws InitializationException
Create a new SSRC object to operate on the given URL using certificate-based authentication. The keystore and truststore to be used have to be set using the System.setProperty(String, String) method using the keys javax.net.ssl.keyStore, and javax.net.ssl.trustStore respectively.

Parameters:
url - the URL to connect to
kms - TrustManager instances to initialize the SSLContext with.
tms - KeyManager instances to initialize the SSLContext with.
Returns:
a new SSRC that uses certificate-based authentication
Throws:
IOException
InitializationException

createRequestFactory

public static RequestFactory createRequestFactory()
Deprecated. Use Requests directly.

Create a new RequestFactory object to create IF-MAP requests to be used with the methods provided by the SSRC class.

Returns:
a new RequestFactory that is used to create IF-MAP requests

createIdentifierFactory

public static IdentifierFactory createIdentifierFactory()
Deprecated. Use Identifiers directly.

Create a IdentifierFactory object to create different types of Identifier implementations.

Returns:
a new IdentifierFactory that is used to create IF-MAP identifiers

createStandardMetadataFactory

public static StandardIfmapMetadataFactory createStandardMetadataFactory()
Crate a new StandardIfmapMetadataFactory object to create standard metadata defined by IF-MAP 2.0.

Returns:
a new StandardIfmapMetadataFactory to create metadata


Copyright © 2012 Trust@FHH. All Rights Reserved.