|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jsdsi.Loader
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
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 |
public Loader(java.lang.String filename) throws java.io.IOException
Method Detail |
public java.security.cert.CertStore getCertStore()
public java.util.Collection getKeys()
public java.util.Set getCerts()
public java.util.Set getNames()
public java.util.Set getTags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |