Class LegacyVOMSResponse
java.lang.Object
org.italiangrid.voms.request.impl.LegacyVOMSResponse
- All Implemented Interfaces:
VOMSResponse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts the error messages from the VOMS response.byte[]getAC()Extracts the AC from the VOMS response.intExtracts the version from the VOMS response.booleanbooleanExtracts the warning messags from the VOMS response.
-
Field Details
-
xmlResponse
-
-
Constructor Details
-
LegacyVOMSResponse
Builds a VOMSResponse starting from a DOM an XML document (seeDocument).- Parameters:
res- the XML document for the response
-
-
Method Details
-
getVersion
public int getVersion()Description copied from interface:VOMSResponseExtracts the version from the VOMS response.- Specified by:
getVersionin interfaceVOMSResponse- Returns:
- an integer containing the AC.
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrorsin interfaceVOMSResponse- Returns:
trueif thisVOMSResponsehas errors,falseotherwise
-
hasWarnings
public boolean hasWarnings()- Specified by:
hasWarningsin interfaceVOMSResponse- Returns:
trueif thisVOMSResponsehas warnings,falseotherwise
-
getAC
public byte[] getAC()Description copied from interface:VOMSResponseExtracts the AC from the VOMS response.- Specified by:
getACin interfaceVOMSResponse- Returns:
- an array of bytes containing the AC.
-
errorMessages
Description copied from interface:VOMSResponseExtracts the error messages from the VOMS response.- Specified by:
errorMessagesin interfaceVOMSResponse- Returns:
- an array of
VOMSErrorMessageobjects.
-
warningMessages
Description copied from interface:VOMSResponseExtracts the warning messags from the VOMS response.- Specified by:
warningMessagesin interfaceVOMSResponse- Returns:
- an array of
VOMSWarningMessageobjects.
-
getXMLAsString
- Specified by:
getXMLAsStringin interfaceVOMSResponse- Returns:
- Returns the XML representation of the response as a string.
-