public static URL getVerificationURL ( ExpiringCode expiringCode , IdentityZone currentIdentityZone ) { String url = "" ; try { url = UaaUrlUtils . getUaaUrl ( "/verify_user" , true , currentIdentityZone ) ; if ( expiringCode != null ) { url += "?code=" + expiringCode . getCode ( ) ; } return new URL ( url ) ; } catch ( MalformedURLException mfue ) { logger . error ( String . format ( "Unexpected error creating user verification URL from %s" , url ) , mfue ) ; } throw new IllegalStateException ( ) ; }
Returns a verification URL that may be sent to a user .