Java Doc for DOMCryptoContext.java in  » 6.0-JDK-Core » xml » javax » xml » crypto » dom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » xml » javax.xml.crypto.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.crypto.dom.DOMCryptoContext

All known Subclasses:   javax.xml.crypto.dsig.dom.DOMValidateContext,  javax.xml.crypto.dsig.dom.DOMSignContext,
DOMCryptoContext
public class DOMCryptoContext implements XMLCryptoContext(Code)
This class provides a DOM-specific implementation of the XMLCryptoContext interface. It also includes additional methods that are specific to a DOM-based implementation for registering and retrieving elements that contain attributes of type ID.
author:
   Sean Mullan
author:
   JSR 105 Expert Group
since:
   1.6



Constructor Summary
protected  DOMCryptoContext()
     Default constructor.

Method Summary
public  Objectget(Object key)
     This implementation uses an internal HashMap to get the object that the specified key maps to.
public  StringgetBaseURI()
    
public  StringgetDefaultNamespacePrefix()
    
public  ElementgetElementById(String idValue)
     Returns the Element with the specified ID attribute value.

This implementation uses an internal HashMap to get the element that the specified attribute value maps to.

public  KeySelectorgetKeySelector()
    
public  StringgetNamespacePrefix(String namespaceURI, String defaultPrefix)
     This implementation uses an internal HashMap to get the prefix that the specified URI maps to.
public  ObjectgetProperty(String name)
     This implementation uses an internal HashMap to get the object that the specified name maps to.
public  URIDereferencergetURIDereferencer()
    
public  Iteratoriterator()
     Returns a read-only iterator over the set of Id/Element mappings of this DOMCryptoContext.
public  Objectput(Object key, Object value)
     This implementation uses an internal HashMap to map the key to the specified object.
public  StringputNamespacePrefix(String namespaceURI, String prefix)
     This implementation uses an internal HashMap to map the URI to the specified prefix.
public  voidsetBaseURI(String baseURI)
    
public  voidsetDefaultNamespacePrefix(String defaultPrefix)
    
public  voidsetIdAttributeNS(Element element, String namespaceURI, String localName)
     Registers the element's attribute specified by the namespace URI and local name to be of type ID.
public  voidsetKeySelector(KeySelector ks)
    
public  ObjectsetProperty(String name, Object value)
     This implementation uses an internal HashMap to map the name to the specified object.
public  voidsetURIDereferencer(URIDereferencer dereferencer)
    


Constructor Detail
DOMCryptoContext
protected DOMCryptoContext()(Code)
Default constructor. (For invocation by subclass constructors).




Method Detail
get
public Object get(Object key)(Code)
This implementation uses an internal HashMap to get the object that the specified key maps to.



getBaseURI
public String getBaseURI()(Code)



getDefaultNamespacePrefix
public String getDefaultNamespacePrefix()(Code)



getElementById
public Element getElementById(String idValue)(Code)
Returns the Element with the specified ID attribute value.

This implementation uses an internal HashMap to get the element that the specified attribute value maps to.
Parameters:
  idValue - the value of the ID the Element with the specified ID attribute value,or null if none.
throws:
  NullPointerException - if idValue is null
See Also:   DOMCryptoContext.setIdAttributeNS




getKeySelector
public KeySelector getKeySelector()(Code)



getNamespacePrefix
public String getNamespacePrefix(String namespaceURI, String defaultPrefix)(Code)
This implementation uses an internal HashMap to get the prefix that the specified URI maps to. It returns the defaultPrefix if it maps to null.
throws:
  NullPointerException -



getProperty
public Object getProperty(String name)(Code)
This implementation uses an internal HashMap to get the object that the specified name maps to.
throws:
  NullPointerException -



getURIDereferencer
public URIDereferencer getURIDereferencer()(Code)



iterator
public Iterator iterator()(Code)
Returns a read-only iterator over the set of Id/Element mappings of this DOMCryptoContext. Attempts to modify the set via the Iterator.remove method throw an UnsupportedOperationException. The mappings are returned in no particular order. Each element in the iteration is represented as a java.util.Map.Entry . If the DOMCryptoContext is modified while an iteration is in progress, the results of the iteration are undefined. a read-only iterator over the set of mappings



put
public Object put(Object key, Object value)(Code)
This implementation uses an internal HashMap to map the key to the specified object.
throws:
  IllegalArgumentException -



putNamespacePrefix
public String putNamespacePrefix(String namespaceURI, String prefix)(Code)
This implementation uses an internal HashMap to map the URI to the specified prefix.
throws:
  NullPointerException -



setBaseURI
public void setBaseURI(String baseURI)(Code)

throws:
  IllegalArgumentException -



setDefaultNamespacePrefix
public void setDefaultNamespacePrefix(String defaultPrefix)(Code)



setIdAttributeNS
public void setIdAttributeNS(Element element, String namespaceURI, String localName)(Code)
Registers the element's attribute specified by the namespace URI and local name to be of type ID. The attribute must have a non-empty value.

This implementation uses an internal HashMap to map the attribute's value to the specified element.
Parameters:
  element - the element
Parameters:
  namespaceURI - the namespace URI of the attribute (specifynull if not applicable)
Parameters:
  localName - the local name of the attribute
throws:
  IllegalArgumentException - if localName is not anattribute of the specified element or it does not contain a specificvalue
throws:
  NullPointerException - if element orlocalName is null
See Also:   DOMCryptoContext.getElementById




setKeySelector
public void setKeySelector(KeySelector ks)(Code)



setProperty
public Object setProperty(String name, Object value)(Code)
This implementation uses an internal HashMap to map the name to the specified object.
throws:
  NullPointerException -



setURIDereferencer
public void setURIDereferencer(URIDereferencer dereferencer)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.