⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectfactory.java

📁 一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考
💻 JAVA
字号:
package org.w3._2001._04.xmlenc_;import java.math.BigInteger;import javax.xml.bind.JAXBElement;import javax.xml.bind.annotation.XmlElementDecl;import javax.xml.bind.annotation.XmlRegistry;import javax.xml.namespace.QName;import org.w3._2000._09.xmldsig_.KeyInfoType;/** * This object contains factory methods for each  * Java content interface and Java element interface  * generated in the org.w3._2001._04.xmlenc_ package.  * <p>An ObjectFactory allows you to programatically  * construct new instances of the Java representation  * for XML content. The Java representation of XML  * content can consist of schema derived interfaces  * and classes representing the binding of schema  * type definitions, element declarations and model  * groups.  Factory methods for each of these are  * provided in this class. *  */@XmlRegistrypublic class ObjectFactory {    private final static QName _EncryptionMethodTypeOAEPparams_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "OAEPparams");    private final static QName _EncryptionMethodTypeKeySize_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "KeySize");    private final static QName _AgreementMethod_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "AgreementMethod");    private final static QName _CipherReference_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "CipherReference");    private final static QName _EncryptionProperties_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "EncryptionProperties");    private final static QName _EncryptionProperty_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "EncryptionProperty");    private final static QName _EncryptedKey_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "EncryptedKey");    private final static QName _CipherData_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "CipherData");    private final static QName _EncryptedData_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "EncryptedData");    private final static QName _ReferenceListDataReference_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "DataReference");    private final static QName _ReferenceListKeyReference_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "KeyReference");    private final static QName _AgreementMethodTypeKANonce_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "KA-Nonce");    private final static QName _AgreementMethodTypeOriginatorKeyInfo_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "OriginatorKeyInfo");    private final static QName _AgreementMethodTypeRecipientKeyInfo_QNAME = new QName("http://www.w3.org/2001/04/xmlenc#", "RecipientKeyInfo");    /**     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._2001._04.xmlenc_     *      */    public ObjectFactory() {    }    /**     * Create an instance of {@link EncryptionMethodType }     *      */    public EncryptionMethodType createEncryptionMethodType() {        return new EncryptionMethodType();    }    /**     * Create an instance of {@link EncryptionPropertiesType }     *      */    public EncryptionPropertiesType createEncryptionPropertiesType() {        return new EncryptionPropertiesType();    }    /**     * Create an instance of {@link EncryptedKeyType }     *      */    public EncryptedKeyType createEncryptedKeyType() {        return new EncryptedKeyType();    }    /**     * Create an instance of {@link CipherDataType }     *      */    public CipherDataType createCipherDataType() {        return new CipherDataType();    }    /**     * Create an instance of {@link ReferenceType }     *      */    public ReferenceType createReferenceType() {        return new ReferenceType();    }    /**     * Create an instance of {@link ReferenceList }     *      */    public ReferenceList createReferenceList() {        return new ReferenceList();    }    /**     * Create an instance of {@link EncryptionPropertyType }     *      */    public EncryptionPropertyType createEncryptionPropertyType() {        return new EncryptionPropertyType();    }    /**     * Create an instance of {@link TransformsType }     *      */    public TransformsType createTransformsType() {        return new TransformsType();    }    /**     * Create an instance of {@link CipherReferenceType }     *      */    public CipherReferenceType createCipherReferenceType() {        return new CipherReferenceType();    }    /**     * Create an instance of {@link EncryptedDataType }     *      */    public EncryptedDataType createEncryptedDataType() {        return new EncryptedDataType();    }    /**     * Create an instance of {@link AgreementMethodType }     *      */    public AgreementMethodType createAgreementMethodType() {        return new AgreementMethodType();    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "OAEPparams", scope = EncryptionMethodType.class)    public JAXBElement<byte[]> createEncryptionMethodTypeOAEPparams(byte[] value) {        return new JAXBElement<byte[]>(_EncryptionMethodTypeOAEPparams_QNAME, byte[].class, EncryptionMethodType.class, ((byte[]) value));    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "KeySize", scope = EncryptionMethodType.class)    public JAXBElement<BigInteger> createEncryptionMethodTypeKeySize(BigInteger value) {        return new JAXBElement<BigInteger>(_EncryptionMethodTypeKeySize_QNAME, BigInteger.class, EncryptionMethodType.class, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link AgreementMethodType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "AgreementMethod")    public JAXBElement<AgreementMethodType> createAgreementMethod(AgreementMethodType value) {        return new JAXBElement<AgreementMethodType>(_AgreementMethod_QNAME, AgreementMethodType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link CipherReferenceType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "CipherReference")    public JAXBElement<CipherReferenceType> createCipherReference(CipherReferenceType value) {        return new JAXBElement<CipherReferenceType>(_CipherReference_QNAME, CipherReferenceType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link EncryptionPropertiesType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "EncryptionProperties")    public JAXBElement<EncryptionPropertiesType> createEncryptionProperties(EncryptionPropertiesType value) {        return new JAXBElement<EncryptionPropertiesType>(_EncryptionProperties_QNAME, EncryptionPropertiesType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link EncryptionPropertyType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "EncryptionProperty")    public JAXBElement<EncryptionPropertyType> createEncryptionProperty(EncryptionPropertyType value) {        return new JAXBElement<EncryptionPropertyType>(_EncryptionProperty_QNAME, EncryptionPropertyType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link EncryptedKeyType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "EncryptedKey")    public JAXBElement<EncryptedKeyType> createEncryptedKey(EncryptedKeyType value) {        return new JAXBElement<EncryptedKeyType>(_EncryptedKey_QNAME, EncryptedKeyType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link CipherDataType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "CipherData")    public JAXBElement<CipherDataType> createCipherData(CipherDataType value) {        return new JAXBElement<CipherDataType>(_CipherData_QNAME, CipherDataType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link EncryptedDataType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "EncryptedData")    public JAXBElement<EncryptedDataType> createEncryptedData(EncryptedDataType value) {        return new JAXBElement<EncryptedDataType>(_EncryptedData_QNAME, EncryptedDataType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "DataReference", scope = ReferenceList.class)    public JAXBElement<ReferenceType> createReferenceListDataReference(ReferenceType value) {        return new JAXBElement<ReferenceType>(_ReferenceListDataReference_QNAME, ReferenceType.class, ReferenceList.class, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "KeyReference", scope = ReferenceList.class)    public JAXBElement<ReferenceType> createReferenceListKeyReference(ReferenceType value) {        return new JAXBElement<ReferenceType>(_ReferenceListKeyReference_QNAME, ReferenceType.class, ReferenceList.class, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "KA-Nonce", scope = AgreementMethodType.class)    public JAXBElement<byte[]> createAgreementMethodTypeKANonce(byte[] value) {        return new JAXBElement<byte[]>(_AgreementMethodTypeKANonce_QNAME, byte[].class, AgreementMethodType.class, ((byte[]) value));    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "OriginatorKeyInfo", scope = AgreementMethodType.class)    public JAXBElement<KeyInfoType> createAgreementMethodTypeOriginatorKeyInfo(KeyInfoType value) {        return new JAXBElement<KeyInfoType>(_AgreementMethodTypeOriginatorKeyInfo_QNAME, KeyInfoType.class, AgreementMethodType.class, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://www.w3.org/2001/04/xmlenc#", name = "RecipientKeyInfo", scope = AgreementMethodType.class)    public JAXBElement<KeyInfoType> createAgreementMethodTypeRecipientKeyInfo(KeyInfoType value) {        return new JAXBElement<KeyInfoType>(_AgreementMethodTypeRecipientKeyInfo_QNAME, KeyInfoType.class, AgreementMethodType.class, value);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -