abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since 65dbf06 was
f84d71e,
checked in by Ted Faber <faber@…>, 12 years ago
|
More credential parsing
|
-
Property mode set to
100644
|
File size:
951 bytes
|
Line | |
---|
1 | package net.deterlab.abac; |
---|
2 | |
---|
3 | import java.io.*; |
---|
4 | import java.util.*; |
---|
5 | import java.lang.reflect.*; |
---|
6 | |
---|
7 | |
---|
8 | /** |
---|
9 | * This class parses one or more Credentials. Each class that wants to be |
---|
10 | * parsed needs to export a static method that returns one of these. For |
---|
11 | * credentials that parse 1 credential to 1 input it will be a wrapper around a |
---|
12 | * constructor. |
---|
13 | * @author <a href="http://abac.deterlab.net">ISI ABAC team</a> |
---|
14 | * @version 1.3 |
---|
15 | */ |
---|
16 | public abstract class CredentialParser { |
---|
17 | /** |
---|
18 | * Parse one or more Credentials from the given input and IDs. The |
---|
19 | * sub-type of Credential returned is up to this class. |
---|
20 | * @param is an InputStream to be parsed |
---|
21 | * @param ids a Collection of Identity s to use in validating credentials. |
---|
22 | * @return an array of Credentials |
---|
23 | * @throws ABACException on parsing problems |
---|
24 | */ |
---|
25 | public abstract Credential[] parseCredential(InputStream is, |
---|
26 | Collection<Identity> ids) throws ABACException; |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.