public void setFallbackPolicy ( Policy fallbackPolicy ) { Policy p = fallbackPolicy ; while ( p != null ) { if ( ! ( p instanceof ContextAwarePolicy ) ) { throw new IllegalArgumentException ( "Fallback policy must be instance of ContextAwarePolicy" ) ; } p = p . getFallbackPolicy ( ) ; } this . policy . setFallbackPolicy ( fallbackPolicy ) ; }
Sets a fallback policy to be used when signature does not verify with given policy .