|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuc3m.it.ptm.authentication.PKCVerifier
Field Summary |
Fields inherited from interface uc3m.it.ptm.authentication.IPKCVerifier |
CERT_NOT_FOUND, FILE_NOT_OPENED, PARAMETER_NOT_VALID, READING_CERT, STORE_NOT_VALID, TRUST_NOT_FOUND |
Constructor Summary | |
PKCVerifier()
This constructor creates a PKCVerifier. |
Method Summary | |
int |
getErrorCode()
This method returns the error code. |
java.util.Hashtable |
getPKC(byte typeInfo,
byte[] info)
This method returns certificates matching search parameters. |
java.util.Vector |
getPKC(byte typeInfo,
java.lang.String hashAlgorithmId,
byte[] info)
This method returns certificates matching search parameters. |
float |
getTrustValue(byte typeInfo,
java.lang.String hashAlgorithmId,
byte[] info)
This method returns the trust value associatted to a user. |
java.lang.String[] |
getValidityPeriod()
This method returns the validity period of the certificate. |
int |
isPKCValid(byte typeInfo,
java.lang.String hashAlgorithmId,
byte[] info)
This method validates a certificate matching search parameters. |
boolean |
isPKCValid(CertBean cb)
This method validates a certificate from a certificate bean. |
int |
isPKCValid(java.lang.String path)
This method validates a certificate from a specific path. |
int |
isTrusted(byte typeInfo,
java.lang.String hashAlgorithmId,
byte[] info,
float trustThreshold)
This method evaluates the user's trustworthiness from a trust threshold. |
boolean |
isTrusted(CertBean cb,
float trustThreshold)
This method evaluates the user's trustworthiness from a trust threshold. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PKCVerifier()
Method Detail |
public java.util.Vector getPKC(byte typeInfo, java.lang.String hashAlgorithmId, byte[] info)
typeInfo
- byte (search information: (0 = SubjectPKC, 1 = BaseCertID, 2 = Hash Public Key Certificate)hashAlgorithmId
- String (OID hash algorithm ("sha1" or "md5"). If not, it is null)info
- byte[] (byte array corresponds the encoding information)public java.util.Hashtable getPKC(byte typeInfo, byte[] info)
typeInfo
- byte (search information: (0 = SubjectPKC, 1 = BaseCertID, 2 = Hash Public Key)info
- byte[] (byte array corresponds the encoding information)public int isPKCValid(byte typeInfo, java.lang.String hashAlgorithmId, byte[] info)
isPKCValid
in interface IPKCVerifier
public int isPKCValid(java.lang.String path)
public boolean isPKCValid(CertBean cb)
isPKCValid
in interface IPKCVerifier
public int isTrusted(byte typeInfo, java.lang.String hashAlgorithmId, byte[] info, float trustThreshold)
isTrusted
in interface IPKCVerifier
public boolean isTrusted(CertBean cb, float trustThreshold)
isTrusted
in interface IPKCVerifier
public float getTrustValue(byte typeInfo, java.lang.String hashAlgorithmId, byte[] info)
getTrustValue
in interface IPKCVerifier
public java.lang.String[] getValidityPeriod()
getValidityPeriod
in interface IPKCVerifier
public int getErrorCode()
getErrorCode
in interface IPKCVerifier
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |