question: public void readSecurityHeader ( SipResponse response ) throws PayloadException { WWWAuthenticateHeader wwwHeader = ( WWWAuthenticateHeader ) response . getHeader ( WWWAuthenticateHeader . NAME ) ; AuthenticationInfoHeader infoHeader = ( AuthenticationInfoHeader ) response . getHeader ( AuthenticationInfoHeader . NAME ) ; if ( wwwHeader != null ) { mDigest . setRealm ( wwwHeader . getRealm ( ) ) ; mDigest . setOpaque ( wwwHeader . getOpaque ( ) ) ; mDigest . setQop ( wwwHeader . getQop ( ) ) ; mDigest . setNextnonce ( wwwHeader . getNonce ( ) ) ; } else if ( infoHeader != null ) { if ( infoHeader . getNextNonce ( ) != null ) { mDigest . setNextnonce ( infoHeader . getNextNonce ( ) ) ; } } }
target:  Read security header from REGISTER response