protected final void validateSuccess ( final Status status ) { String statusValue = status . getStatusCode ( ) . getValue ( ) ; if ( ! StatusCode . SUCCESS . equals ( statusValue ) ) { final StatusMessage statusMessage = status . getStatusMessage ( ) ; if ( statusMessage != null ) { statusValue += " / " + statusMessage . getMessage ( ) ; } throw new SAMLException ( "Response is not success ; actual " + statusValue ) ; } }
Validates that the response is a success .