net.jini.jeri.ssl
Class SubjectCredentials.CertificateMatcher

java.lang.Object
  extended by net.jini.jeri.ssl.SubjectCredentials.CertificateMatcher
Enclosing class:
SubjectCredentials

private static class SubjectCredentials.CertificateMatcher
extends Object

Provides utilities for converting between X.509 certificates and unique certificate names.


Field Summary
private  String issuerName
           
private  BigInteger serialNumber
           
 
Constructor Summary
private SubjectCredentials.CertificateMatcher(BigInteger serialNumber, String issuerName)
           
 
Method Summary
(package private) static SubjectCredentials.CertificateMatcher create(String certificateName)
          Creates an object that can be compared with an X.509 certificate.
private static String getIssuerName(X509Certificate certificate)
          Returns the canonical issuer name for an X.509 certificate.
(package private) static String getName(X509Certificate certificate)
          Returns the unique certificate name for an X.509 certificate
(package private)  boolean matches(X509Certificate certificate)
          Returns true if an X.509 certificate matches the certificate name specified in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialNumber

private final BigInteger serialNumber

issuerName

private final String issuerName
Constructor Detail

SubjectCredentials.CertificateMatcher

private SubjectCredentials.CertificateMatcher(BigInteger serialNumber,
                                              String issuerName)
Method Detail

create

static SubjectCredentials.CertificateMatcher create(String certificateName)
Creates an object that can be compared with an X.509 certificate. Returns null if the argument is not a valid certificate name.


getName

static String getName(X509Certificate certificate)
Returns the unique certificate name for an X.509 certificate


matches

boolean matches(X509Certificate certificate)
Returns true if an X.509 certificate matches the certificate name specified in the constructor.


getIssuerName

private static String getIssuerName(X509Certificate certificate)
Returns the canonical issuer name for an X.509 certificate.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.