FileDocCategorySizeDatePackage
XMLX509SubjectName.javaAPI DocJava SE 6 API2971Tue Jun 10 00:23:02 BST 2008com.sun.org.apache.xml.internal.security.keys.content.x509

XMLX509SubjectName

public class XMLX509SubjectName extends SignatureElementProxy implements XMLX509DataContent
author
$Author: raul $

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
Constructors Summary
public XMLX509SubjectName(Element element, String BaseURI)
Constructor X509SubjectName

param
element
param
BaseURI
throws
XMLSecurityException


               
       
             
      super(element, BaseURI);
   
public XMLX509SubjectName(Document doc, String X509SubjectNameString)
Constructor X509SubjectName

param
doc
param
X509SubjectNameString


      super(doc);

      this.addText(X509SubjectNameString);
   
public XMLX509SubjectName(Document doc, X509Certificate x509certificate)
Constructor XMLX509SubjectName

param
doc
param
x509certificate

      this(doc,
           RFC2253Parser.normalize(x509certificate.getSubjectDN().getName()));
   
Methods Summary
public booleanequals(java.lang.Object obj)

inheritDoc


      if (!obj.getClass().getName().equals(this.getClass().getName())) {
         return false;
      }

      XMLX509SubjectName other = (XMLX509SubjectName) obj;
      String otherSubject = other.getSubjectName();
      String thisSubject = this.getSubjectName();

      if (otherSubject.equals(thisSubject)) {
            return true;
      }

       return false;
      
   
public java.lang.StringgetBaseLocalName()

inheritDoc

      return Constants._TAG_X509SUBJECTNAME;
   
public java.lang.StringgetSubjectName()
Method getSubjectName

return
the subject name

      return RFC2253Parser.normalize(this.getTextFromTextChild());