All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.esu.sysmgmt.pox.ResetUidSecretResponse Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.emc.esu.sysmgmt.pox;

import java.io.IOException;
import java.net.HttpURLConnection;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;

import com.emc.esu.sysmgmt.SysMgmtUtils;

public class ResetUidSecretResponse extends PoxResponse {
    private String newSecret;

    public ResetUidSecretResponse(HttpURLConnection con) throws IOException, JDOMException {
        // Parse response
        Document doc = SysMgmtUtils.parseResponseXml(con);
        
        Element root = doc.getRootElement(); //shared_secret
        newSecret = root.getText();
    }

    public String getNewSecret() {
        return newSecret;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy