Package org.italiangrid.voms.request
Interface VOMSResponse
-
- All Known Implementing Classes:
LegacyVOMSResponse,RESTVOMSResponse
public interface VOMSResponse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VOMSErrorMessage[]errorMessages()Extracts the error messages from the VOMS response.byte[]getAC()Extracts the AC from the VOMS response.intgetVersion()Extracts the version from the VOMS response.java.lang.StringgetXMLAsString()booleanhasErrors()booleanhasWarnings()VOMSWarningMessage[]warningMessages()Extracts the warning messags from the VOMS response.
-
-
-
Method Detail
-
hasErrors
boolean hasErrors()
- Returns:
trueif thisVOMSResponsehas errors,falseotherwise
-
hasWarnings
boolean hasWarnings()
- Returns:
trueif thisVOMSResponsehas warnings,falseotherwise
-
getAC
byte[] getAC()
Extracts the AC from the VOMS response.- Returns:
- an array of bytes containing the AC.
-
getVersion
int getVersion()
Extracts the version from the VOMS response.- Returns:
- an integer containing the AC.
-
errorMessages
VOMSErrorMessage[] errorMessages()
Extracts the error messages from the VOMS response.- Returns:
- an array of
VOMSErrorMessageobjects.
-
warningMessages
VOMSWarningMessage[] warningMessages()
Extracts the warning messags from the VOMS response.- Returns:
- an array of
VOMSWarningMessageobjects.
-
getXMLAsString
java.lang.String getXMLAsString()
- Returns:
- Returns the XML representation of the response as a string.
-
-