Skip to content

A Java library and tool to interact with an EPIC v2 PID service

Notifications You must be signed in to change notification settings

meertensinstituut/EPICify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EPICify

A Java library and tool to interact with an EPIC v2 or Handle v8 PID service.

$ mvn clean package
$ java -jar cli/target/epicify.jar
java -jar epicify.jar <options>

new handle   : <path to config> new <suffix>? <uri>
get handle   : <path to config> get <prefix/suffix>
update handle: <path to config> upd <prefix/suffix> <uri>
delete handle: <path to config> del <prefix/suffix>
               NOTE: there might be a nodelete policy active!

Handle v8 PID service

Configuration file for a Handle v8 PID service looks like

<PIDService>
  <host>https://[server:port]/api/handles/</host>
  <HandlePrefix>11.T12345</HandlePrefix>
  <private_key>user_private_key.pem</private_key>
  <server_certificate_only>server_certificate_if_selfsigned.crt</server_certificate_only>
  <private_certificate>user_certificate.pem</private_certificate>
  <status>test</status>
</PIDService>

NOTES:

  1. private_key, private_certificate are required
  2. in case of selfsigned server certificate, use this command to get the server certificate and save it as a .crt file
$ openssl s_client -connect [server:port] -showcerts 
  1. change test into production

EPIC v2 PID service

Where a config looks like this:

<PIDService>
  <URI>http://www.pidconsortium.eu/</URI>
  <HandlePrefix>12345</HandlePrefix>
  <hostName>www.pidconsortium.eu</hostName>
  <userName>epic</userName>
  <password>test</password>
  <email>[email protected]</email>
  <status>test</status>
</PIDService>

NOTES:

  1. change test into production

NOTE: EPICify is based on work by Jan Pieter Kunst and others @ http://www.meertens.knaw.nl/ontwikkeling


epicify (3)

About

A Java library and tool to interact with an EPIC v2 PID service

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages