org.keymg.api.sym.client
Class SymKeyClient

java.lang.Object
  extended by org.keymg.api.sym.client.SymKeyClient

public class SymKeyClient
extends Object

Client class for accessing the SKSML Servers

Since:
Jul 15, 2011
Author:
anil@apache.org

Field Summary
protected  String domainID
           
protected  String serverURL
           
 
Constructor Summary
SymKeyClient(String domainID, String serverURL, PrivateKey privateKey)
          Create the client
 
Method Summary
 org.keymg.sym.model.ekmi.SymkeyResponse createNew()
           
 byte[] getKey(org.keymg.sym.model.ekmi.SymkeyResponse response)
           
protected  String newGID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverURL

protected String serverURL

domainID

protected String domainID
Constructor Detail

SymKeyClient

public SymKeyClient(String domainID,
                    String serverURL,
                    PrivateKey privateKey)
Create the client

Parameters:
domainID - The Domain ID of the Client
serverURL - The SKSML Server
Method Detail

createNew

public org.keymg.sym.model.ekmi.SymkeyResponse createNew()
                                                  throws SymKeyGenerationException
Throws:
SymKeyGenerationException

getKey

public byte[] getKey(org.keymg.sym.model.ekmi.SymkeyResponse response)
              throws IOException,
                     GeneralSecurityException,
                     UnsupportedEncodingException
Throws:
IOException
GeneralSecurityException
UnsupportedEncodingException

newGID

protected String newGID()


Copyright © 2009-2011. All Rights Reserved.