public void setApiKeyPrefix ( String apiKeyPrefix ) { for ( Authentication auth : authentications . values ( ) ) { if ( auth instanceof ApiKeyAuth ) { ( ( ApiKeyAuth ) auth ) . setApiKeyPrefix ( apiKeyPrefix ) ; return ; } } throw new RuntimeException ( "No API key authentication configured!" ) ; }
Helper method to set API key prefix for the first API key authentication .