private Boolean supportsMessageProtection ( String url , Map < String , String > challengeMap ) { if ( ! "true" . equals ( challengeMap . get ( "supportspop" ) ) ) { return false ; } // Message protection is enabled only for subset of keys operations. if ( ! url . toLowerCase ( ) . contains ( "/keys/" ) ) { return false ; } String [ ] tokens = url . split ( "\\?" ) [ 0 ] . split ( "/" ) ; return supportedMethods . contains ( tokens [ tokens . length - 1 ] ) ; }
Checks if resource supports message protection .