1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.xml.encryption.impl;
18
19 import org.opensaml.xml.AbstractXMLObjectBuilder;
20 import org.opensaml.xml.encryption.EncryptionMethod;
21 import org.opensaml.xml.encryption.XMLEncryptionBuilder;
22 import org.opensaml.xml.util.XMLConstants;
23
24
25
26
27 public class EncryptionMethodBuilder extends AbstractXMLObjectBuilder<EncryptionMethod> implements XMLEncryptionBuilder<EncryptionMethod> {
28
29
30
31
32
33 public EncryptionMethodBuilder() {
34 }
35
36
37 public EncryptionMethod buildObject(String namespaceURI, String localName, String namespacePrefix) {
38 return new EncryptionMethodImpl(namespaceURI, localName, namespacePrefix);
39 }
40
41
42 public EncryptionMethod buildObject() {
43 return buildObject(XMLConstants.XMLENC_NS, EncryptionMethod.DEFAULT_ELEMENT_LOCAL_NAME, XMLConstants.XMLENC_PREFIX);
44 }
45
46 }