jsdsi
Class Loader

java.lang.Object
  |
  +--jsdsi.Loader

public class Loader
extends java.lang.Object

Creates a set of certificates from a flat text file for testing. Each certificate appears on its own line. Blank lines are allowed, but comments are not.

Name certs are specified as follows:
ISSUER name -> SUBJECT [names...]

For example,
ALICE friends -> BOB
BOB my-friends -> BOB sister
BOB sister -> CAROL

Note that we use uppercase for keys and lowecase for names for clarity, but this is not required. However, lines are case-sensitive, so "BOB" is different from "Bob".

Auth certs are specified as follows:
ISSUER [!|+]tag -> SUBJECT [names...]
where ! means the permission "tag" cannot be delegated, while "+" means that it can.

For example,
ALICE !read -> BOB
BOB +write -> BOB my-friends

Author:
Sameer Ajmani

Constructor Summary
Loader(java.lang.String filename)
           
 
Method Summary
 java.util.Set getCerts()
           
 java.security.cert.CertStore getCertStore()
           
 java.util.Collection getKeys()
           
 java.util.Set getNames()
           
 java.util.Set getTags()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader(java.lang.String filename)
       throws java.io.IOException
Method Detail

getCertStore

public java.security.cert.CertStore getCertStore()

getKeys

public java.util.Collection getKeys()

getCerts

public java.util.Set getCerts()

getNames

public java.util.Set getNames()

getTags

public java.util.Set getTags()